Commit Graph
1073 Commits
Author SHA1 Message Date
Francesco Abbate 67d7b894ae Add initial suggestion in open-project-folder 2021-09-07 15:23:41 +02:00
Francesco Abbate 90c721b823 Adopt bigger fonts by default 2021-09-07 15:11:20 +02:00
GuldomanandFrancesco Abbate f9c7eeeeb8 Check if session file returned anything 2021-09-07 15:03:00 +02:00
GuldomanandFrancesco Abbate 59aa7f0090 Fix absolute path detection in core.project_absolute_path 2021-09-07 15:03:00 +02:00
GuldomanandFrancesco Abbate de4072e207 Avoid checking for unique selections on non-DocViews 2021-09-07 15:03:00 +02:00
Adam HarrisonandFrancesco Abbate b7f2d1ad03 Forgot to return an 'n'. 2021-09-07 15:03:00 +02:00
Adam HarrisonandFrancesco Abbate 7811660caf Fixed replace to make it multicursor-aware. 2021-09-07 15:03:00 +02:00
TimofffeeandFrancesco Abbate 604626fa32 Fix macOS keymap 2021-09-07 15:03:00 +02:00
Adam HarrisonandFrancesco Abbate 1d61cf989f Fixed cursor movement. 2021-09-07 15:03:00 +02:00
Adam HarrisonandFrancesco Abbate d352eb1cb9 Fixed cursors moving around with removal and inserts with cursors. Also fixed drawing line highlights with multicursors. 2021-09-07 15:03:00 +02:00
Adam HarrisonandFrancesco Abbate 9d4e944549 Added in two new VSC-style multicursor shortcuts. 2021-09-07 15:03:00 +02:00
GuldomanandFrancesco Abbate d3bd35b577 Use plain string:find when matching plugin directories 2021-09-07 15:03:00 +02:00
GuldomanandFrancesco Abbate 7f338fc993 Allow tabs to always be visible 2021-09-07 14:59:03 +02:00
TakaseandFrancesco Abbate fb907c9bf4 increase code readibility 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate 97493a1a4e add doc:get_selection_text() 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate 30d3751632 remove unused variable 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate 14565b5226 more changes to logview
- remove draw_text_elipsis
- remove clip rect operations
- fix text drawing when expanded
- simplify code
2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate 622b162225 add core.get_log() 2021-09-07 14:59:03 +02:00
takase1121andFrancesco Abbate afaf0a718d improve logview
The logview is now less cluttered.
The filename and stack trace (if any) is hidden by default.
The user can click on the log entry to expand it.
2021-09-07 14:59:03 +02:00
Francesco Abbate 28e8a98ffc Fix error in change-project-folder command 2021-09-07 05:21:45 -07:00
Francesco Abbate 3cc4cd1ada Fix error when opening root directory 2021-09-07 05:09:26 -07:00
Guldoman 371914af67 Check if session file returned anything 2021-09-04 00:32:01 +02:00
Guldoman e559afaefc Add a simple cache to DocView:get_h_scrollable_size
This function gets called at every `core.step`, so we should avoid
having to recalculate the scrollable size every time, as it could get
very expensive on long lines.
2021-09-03 00:55:10 +02:00
Guldoman 46d1203d08 Fix absolute path detection in core.project_absolute_path 2021-09-02 18:58:24 +02:00
Guldoman f31312fd16 Avoid checking for unique selections on non-DocViews 2021-09-01 16:29:47 +02:00
Guldoman a920e5b0e6 Avoid setting a new file as dirty if it is empty 2021-08-31 23:16:02 +02:00
Adam Harrison e541236c22 Forgot to return an 'n'. 2021-08-31 16:21:40 -04:00
Adam Harrison 1c4a4e763e Fixed replace to make it multicursor-aware. 2021-08-30 22:56:33 -04:00
AdamandGitHub 8d6ac47cd0 Merge pull request #451 from Timofffee/fix-macos-keymap
Fix macOS keymap
2021-08-30 13:37:07 -04:00
GuldomanandFrancesco 235b1f0385 Avoid recreating line_numbers table when a recalc is needed 2021-08-30 17:58:22 +02:00
GuldomanandFrancesco 4d0656ad7e Avoid recreating tables when calculating the longest lines 2021-08-30 17:58:22 +02:00
GuldomanandFrancesco 92bbb30d06 Split vertical and horizontal scrollbar-related functions and variables 2021-08-30 17:58:22 +02:00
GuldomanandFrancesco 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
GuldomanandFrancesco 2d33fdc656 Show correct mouse cursor when hovering the horizontal scrollbar 2021-08-30 17:58:22 +02:00
GuldomanandFrancesco 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
GuldomanandFrancesco 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
GuldomanandFrancesco 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
GuldomanandFrancesco c16145d562 Define horizontal scrollable size for DocView 2021-08-30 17:58:22 +02:00
GuldomanandFrancesco f1ca00fbed Extend View to allow horizontal scrolling 2021-08-30 17:58:22 +02:00
GuldomanandFrancesco e52362e55f Make Doc keep track of max line length 2021-08-30 17:58:22 +02:00
AdamandGitHub 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
Timofffee 6e5452844c Fix macOS keymap 2021-08-30 16:21:16 +04: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
GuldomanandFrancesco 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 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