Guldoman
92bbb30d06
Split vertical and horizontal scrollbar-related functions and variables
2021-08-30 17:58:22 +02:00
Guldoman
4a03aec073
Set horizontal scroll size to be more in line with other editors
...
Only scroll enough to see the whole line.
2021-08-30 17:58:22 +02:00
Guldoman
2d33fdc656
Show correct mouse cursor when hovering the horizontal scrollbar
2021-08-30 17:58:22 +02:00
Guldoman
5c7b133e0b
Add horizontal scrollbar
...
Classes and plugins that relied on having only the vertical scrollbar
should continue working.
2021-08-30 17:58:22 +02:00
Guldoman
f106993d0e
Fix discrepancy in max line length
...
The line length calculated in `Doc:load` didn't account for the newline
that gets added.
2021-08-30 17:58:22 +02:00
Guldoman
3e6afeccc0
Remove line from longest lines table only if needed
...
Checking if a line needs to be removed is faster than just trying to
remove it.
2021-08-30 17:58:22 +02:00
Guldoman
c16145d562
Define horizontal scrollable size for `DocView`
2021-08-30 17:58:22 +02:00
Guldoman
f1ca00fbed
Extend `View` to allow horizontal scrolling
2021-08-30 17:58:22 +02:00
Guldoman
e52362e55f
Make `Doc` keep track of max line length
2021-08-30 17:58:22 +02:00
Adam
3eb6f1dbd4
Merge pull request #430 from adamharrison/vsc-multicursor-shortcuts
...
Added in two new VSC-style multicursor shortcuts.
2021-08-30 10:52:09 -04:00
Francesco Abbate
e94718c5c4
Bring back min len autocomplete default to 3
2021-08-30 14:35:42 +02:00
Francesco Abbate
dcf84c743d
Add renderer build options in build-packages.sh
2021-08-30 14:29:20 +02:00
Timofffee
6e5452844c
Fix macOS keymap
2021-08-30 16:21:16 +04:00
Zack A
e9246bcb56
build script: check if .git is present
2021-08-30 09:15:44 +02:00
boppyt
3b35c86c96
build script: check for BUILD_PROHIBIT_GIT
2021-08-30 09:15:44 +02:00
boppyt
08e4e5275f
build script: add .git fallback
2021-08-30 09:15:44 +02:00
Adam Harrison
4ae16615e8
Fixed cursor movement.
2021-08-29 20:05:58 -04:00
Adam Harrison
bbe4e21f52
Fixed cursors moving around with removal and inserts with cursors. Also fixed drawing line highlights with multicursors.
2021-08-29 17:54:57 -04:00
Guldoman
ab6eac399c
Fix crash in project search when project has no files
2021-08-29 11:13:39 +02:00
Guldoman
76334a7946
Use plain `string:find` when matching plugin directories
2021-08-29 11:11:19 +02:00
takase1121
30ccde896d
replace unpack() with table.unpack()
...
I have no idea unpack() is still used and how it still worked.
2021-08-29 09:14:12 +08:00
Adam Harrison
58f4963ade
Added in two new VSC-style multicursor shortcuts.
2021-08-28 13:42:06 -04:00
Francesco Abbate
ccba91261d
Merge remote-tracking branch 'origin/fix-2.0.1'
2021-08-28 17:37:55 +02:00
Francesco Abbate
f1c004411c
Add missing home_encode for change-project-folder
2021-08-28 08:08:53 -07:00
Francesco Abbate
eeac85d4b4
Bump new version number
2021-08-28 16:44:25 +02:00
Daniel Rocha
2b1c157a36
Refactored minimum scale bug fix code
2021-08-28 16:00:41 +02:00
Daniel Rocha
49ec7c88e8
Fix the additional four spaces to two spaces in the indent
2021-08-28 16:00:41 +02:00
Daniel Rocha
dac3a9cba5
Fix minimal scale possible
2021-08-28 16:00:41 +02:00
Guldoman
5e80149295
Avoid having no `pixel_width`
...
On small scales `pixel_width` could become `0`. This caused the creation
of buffers of size `0` with consequent overflows.
2021-08-28 15:56:35 +02:00
Daniel Rocha
95e86b040b
Refactored minimum scale bug fix code
2021-08-28 13:00:33 +02:00
Daniel Rocha
8335b11273
Fix the additional four spaces to two spaces in the indent
2021-08-28 13:00:33 +02:00
Daniel Rocha
e342a017e1
Fix minimal scale possible
2021-08-28 13:00:33 +02:00
Guldoman
07c23fbf17
Avoid having no `pixel_width`
...
On small scales `pixel_width` could become `0`. This caused the creation
of buffers of size `0` with consequent overflows.
2021-08-28 09:59:36 +02:00
Francesco Abbate
06252382ec
Fix focus problem with NagView with root:close-all
...
Fix provided by @Guldoman in PR:
https://github.com/lite-xl/lite-xl/pull/419
2021-08-28 00:21:29 +02:00
Francesco Abbate
4f8de02bcf
Remove unused Object's method "implement"
...
Not used in the code base.
2021-08-28 00:08:30 +02:00
Francesco Abbate
d46475532f
Introduce View objects context property
...
Used to determine if an instance of the given class should
be closed or not when a project session is terminated.
2021-08-27 23:55:17 +02:00
Francesco Abbate
9592ce85f5
Revert "Further simplifies logic for active view in close-all command"
...
This reverts commit bb6b99b167
.
2021-08-27 23:20:08 +02:00
Guldoman
c7d044f178
Allow tabs to always be visible
2021-08-27 20:43:13 +02:00
Francesco Abbate
a8f4c0c4e5
Set initial text for core:change-project-folder
2021-08-27 15:22:09 +02:00
Francesco Abbate
bb6b99b167
Further simplifies logic for active view in close-all command
2021-08-27 14:42:57 +02:00
Francesco Abbate
7f4d9789d6
Simplify commit daf91676
about active view setting
2021-08-27 13:02:28 +02:00
Francesco Abbate
456f6eda65
Do not use os.exit to exit the application
...
Properly quit the application by terminating the core.run()
function. Otherwise a BadWindow event was happening when
closing the window.
2021-08-27 00:17:50 +02:00
Francesco Abbate
daf916769f
Fix bug with close-all command
...
There are really multiple things here in the close_all_docviews
function:
1. we reset the Node's tab_offset
2. we ensure the core's active_view is properly set
3. we close LogViews as well as DocViews
Some conditions seems to never happen but we stay safe and try
to cover all possible cases.
2021-08-27 00:13:40 +02:00
Francesco Abbate
dc501cb41a
Fix plugin version check
2021-08-25 23:45:18 +02:00
Francesco Abbate
609795701d
Fix lua subproject options removed by error
2021-08-24 19:04:48 +02:00
Jan200101
973acb787a
use dependency fallbacks, use system reproc if available
2021-08-24 11:54:44 +02:00
Takase
816ceb4493
increase code readibility
2021-08-24 11:35:53 +02:00
takase1121
cf7ebdad1f
add doc:get_selection_text()
2021-08-24 11:35:53 +02:00
takase1121
1d9f04e7d6
remove unused variable
2021-08-24 11:31:22 +02:00
takase1121
6ac1428b51
more changes to logview
...
- remove draw_text_elipsis
- remove clip rect operations
- fix text drawing when expanded
- simplify code
2021-08-24 11:31:22 +02:00