Commit Graph

344 Commits

Author SHA1 Message Date
Francesco Abbate 4584f98a23 Implement vim visual mode 2021-04-02 12:30:55 +02:00
Francesco Abbate ee040b5785 Add vim command 'b' 2021-04-02 11:12:52 +02:00
Francesco Abbate db8938413c Fix cursor display in command mode 2021-04-02 11:05:26 +02:00
Francesco Abbate e44a408088 Let vim-mode accept textinput events as well as keypress 2021-04-02 11:05:02 +02:00
Francesco Abbate ff3362f9a9 More vim stuff 2021-03-28 00:12:02 +01:00
Francesco Abbate 686ff9b2ad Add begin-of-line vim command 2021-03-28 00:04:04 +01:00
Francesco Abbate 7f37451398 Implement mode dependent caret 2021-03-28 00:03:03 +01:00
Francesco Abbate fbefcc2b72 Add more vim crazyness 2021-03-27 20:15:25 +01:00
Francesco Abbate 879018502f Move vim function in a specific file 2021-03-27 16:27:25 +01:00
Francesco Abbate 4b68ce431c Use global vim mode flag 2021-03-27 15:54:55 +01:00
Francesco Abbate 296ea8b03d vim-mode: accept multi-digit command multiplier 2021-03-25 14:22:36 +01:00
Robert Štojs 40d69470fb
Replicate Vim backspace and CTRL-C behaviour (#129) 2021-03-25 08:55:48 +01:00
Francesco Abbate 9ead6f6427 More accurate '$' and add 'd' vim action's objects 2021-03-24 17:15:20 +01:00
Francesco Abbate 948a4e046d Fix behavior of e and w vim objects 2021-03-24 16:59:13 +01:00
Francesco Abbate 3f4856bccd Add undo command
Do not insert text in command mode
2021-03-24 11:23:04 +01:00
Francesco Abbate b0438b60dc Set the editing mode per view 2021-03-24 11:17:42 +01:00
Francesco Abbate 50bd5e8b2b Fix a few things for vim mode 2021-03-23 16:20:07 +01:00
Francesco Abbate 97a00f946d First preliminary implementation of vim-mode
The basic is there and sort-of-work but largely incomplete and not
yet usable.
2021-03-23 15:41:11 +01:00
Francesco Abbate 15a4985065 Prepare release 1.16.5 2021-03-20 22:31:45 +01:00
Francesco Abbate 60fa7d07ba Prepare 1.16.4 release 2021-03-20 17:10:27 +01:00
Francesco Abbate f9115751b4 Minor simplification of animation rate adjustment 2021-03-20 17:00:43 +01:00
Francesco Abbate 7f50df6a2f Ensure plugin within a directory are loaded
Close #118
2021-03-20 16:34:00 +01:00
takase1121 5e8444b2b1 rename tooltip_alpha_step to tooltip_alpha_rate 2021-03-20 01:04:07 +00:00
takase1121 93753634f5 set delay to 0.5 and disable animation 2021-03-20 01:03:16 +00:00
takase1121 cdf5b9b9b8 show tooltips only when hovering over text 2021-03-20 00:57:06 +00:00
takase1121 d191e8ee34 prevent rendering tooltip when alpha is 0 2021-03-20 00:28:49 +00:00
Francesco Abbate 26ec9e5820 Compute animation rate only if needed 2021-03-18 16:20:21 +01:00
Takase 0bb7f21dd7
tooltip enhancements (#114)
Add a delay to show the tooltip and other improvements.
2021-03-18 16:18:36 +01:00
Francesco Abbate 04063ff47e Fix error introduced with commit c0ad86d 2021-03-18 15:46:44 +01:00
Francesco Abbate 88bec172a1 Fix problem with tab size and subpixel positioning
Solve github issue https://github.com/franko/lite-xl/issues/109
2021-03-18 13:54:33 +01:00
takase1121 1f97805321 normalize tooltip filename to home dir 2021-03-14 03:09:18 +00:00
Takase 13ebb51c38
add tooltips to treeview.lua (#100) 2021-03-13 16:44:40 +01:00
Takase c0ad86de8c
integrate NagView 2021-03-13 12:57:52 +01:00
liquidev 844ecd1f26
Make animation speed independent of config.fps, add config.animation_rate to fine-tune animation speed (#93)
* animation rate config field

* @franko's math magic to make it look more correct
2021-03-10 16:35:37 +01:00
liquidev 3af6af654b
more stylish tabs (#95) 2021-03-09 14:24:14 +01:00
Francesco Abbate b612357371 Bump new version number 2021-03-07 18:47:15 +01:00
Francesco Abbate baf5aebe1c Merge remote-tracking branch 'origin/master' into subpixel-font-positioning-fix 2021-03-07 12:25:53 +01:00
Francesco Abbate 23a053e1ee Ensure error and stack trace are written to stdout
To address https://github.com/franko/lite-xl/issues/87
2021-03-07 09:48:44 +01:00
Francesco Abbate 199476547b Fix error related to panes resize along y 2021-03-06 23:50:19 +01:00
Francesco Abbate 991db14877 Ensure filename are store relative to project directory 2021-03-06 23:49:20 +01:00
Francesco Abbate 5bf7abf23d Ensure filename are store relative to project directory 2021-03-06 23:36:05 +01:00
Francesco Abbate 087c8ba402 Fix error related to panes resize along y 2021-03-06 23:05:04 +01:00
Francesco Abbate 3426bc5d73 Introduce subpixel text positioning within rencache
In order to fix the issue with cursor positioning a subpixel-aware draw
text operation within rencache was required.

With this modification the cursor positioning problem is completely
resolved.

A new function renderer.draw_text_subpixel is introduced to perform
consecutive, inline, text drawings with subpixel accuracy.
2021-03-06 18:12:02 +01:00
Francesco Abbate 9ff6a0325e Mostly fix problem of offset with cursor positioning when using mouse
In order to get right the cursor position on text on mouse clicks it is
needed to take into account text's subpixel positioning.

This fix mostly corrects the problem but cursor positioning is still
somewhat inaccurate for long lines due to repeated commands to draw a text
along a line. Repeated draw text calls make the subpixel information
lost and small errors will add-up.
2021-03-06 16:18:24 +01:00
daubaris 0cb594aaf2
Enable customizing cursor speed (#80)
Addresses issue #65
2021-03-06 11:03:12 +01:00
Francesco Abbate aa1408c01f Do not assume doc.indent_info is present 2021-03-05 23:47:36 +01:00
Francesco Abbate 09332fe242 Fix problem with fatal error message
Previous implementation was broken.

Ensure the error file is always written and write its location in the error message
2021-03-05 23:46:41 +01:00
Francesco Abbate 877e4ac6e2 Bump new version 2021-03-05 11:33:29 +01:00
Francesco Abbate a4bc8986ff Implement fatal error message box
Used when lite-xl fails at startup
2021-03-05 10:33:50 +01:00
Francesco Abbate 3506ff47fc Fix problem with plugin loading
Introduced with PR https://github.com/franko/lite-xl/pull/73
2021-03-05 07:22:56 +01:00