Commit graph

265 commits

Author SHA1 Message Date
05a14ae95c
feat: do a full reparse if tree-sitter reports syntax errors
This change will scan for tree-sitter errors after a partial reparse and do a
full reparse if there are are more errors than the error threshold (currently 5).
This helps prevent the tree-sitter syntax tree getting out of sync during
multi-cursor edits.
2025-04-24 21:09:51 +02:00
07a2c19b9d
fix: side scrolling of highlight_columns 2025-04-18 21:41:01 +02:00
376ca8c9fc
feat: use solid alpha dimmed background color for highlight column 2025-04-18 20:51:04 +02:00
ebfb9f7184
feat: add copy_file_name command 2025-04-15 17:52:20 +02:00
ivel.santos
ccaeded0c8 Fix pasting line 2025-04-13 14:18:54 +02:00
ivel.santos
7778512c35 Correcting selection after paste 2025-04-10 06:42:58 +02:00
ivel.santos
e59cd32ed8 copy and paste improvs and inclusive selection correction 2025-04-10 06:42:58 +02:00
4aca7063f2
feat: add reload_file command 2025-04-09 19:14:02 +02:00
9892e693b0
fix: insert right char on move failure in smart_insert_pair_close
closes #228
2025-04-09 14:50:19 +02:00
ivel.santos
105be85d0f goto_line_vim: integer parameters 2025-04-09 07:09:08 +02:00
33d4eb044a
feat: add highlight_columns initial basic implementation
closes #208
2025-04-08 23:17:23 +02:00
Levi
5199dcdd27
feat: Vim mode: till_char (#224) 2025-04-08 20:05:09 +02:00
41339b05e4
fix: merge build failure in helix.move_next_word_end and add repeat support 2025-04-08 19:32:00 +02:00
Levi
7a1a411aaf
feat: Helix mode: move_next_word_end (#223)
* Helix mode: move_next_word_end

* fix: don't match against legacy unshifted keys when we have extended input text

closes #205

* refactor: remove duplicate implementation of command.get_id

* feat: re-add support for integer command arguments

closes #182

* feat: display pending integer argument in keybind widget

* fix: call configured init_commands for all mode types

* feat: add flow mode keybindings for setting integer argument

* feat: add support for repeat integer arguments to many commands

* feat: add emacs mode keybindings for setting integer argument

* feat: add vim mode keybindings for setting integer argument

* resolving conflit

* disable_selection

---------

Co-authored-by: CJ van den Berg <cj@vdbonline.com>
2025-04-08 19:23:56 +02:00
6bed62e51d
feat: add support for repeat integer arguments to many commands 2025-04-08 18:07:21 +02:00
Levi
fb985a703a
feat: Helix & Vim mode: adding more commands (#218)
* Helix mode: select_left

* select_to_char_right implementation

* Vim select_to_char_left

* Helix select_to_char_left

* Helix & Vim: select_end

* select_to_char_left: Avoid panic with no selection

* select_left_helix: handling panic and shrinking code

* Correcting helix left and right select

* Helix mode: select_left

* select_to_char_right implementation

* Vim select_to_char_left

* Helix select_to_char_left

* Helix & Vim: select_end

* select_to_char_left: Avoid panic with no selection

* select_left_helix: handling panic and shrinking code

* Correcting helix left and right select

* Enable_selection on init_command

* move_to_char modification

* move_or_select

---------

Co-authored-by: CJ van den Berg <cj@vdbonline.com>
2025-04-08 10:28:29 +02:00
716f871d03
fix: pause_/resume_undo_history should correctly store/restore an undo point 2025-04-07 21:10:10 +02:00
563eb57e44
refactor: move cut_to helix workaround to a helix specific command 2025-04-03 06:37:29 +02:00
62c6313107
refactor: mark more editor functions as public 2025-04-03 06:29:31 +02:00
Levi Santos
0babbb1833 fix(helix): Making d and c work as expected in normal mode 2025-04-03 06:16:13 +02:00
ivel.santos
d2d6508ed8 Helix mode: move_cursor_word_left 2025-04-03 06:13:05 +02:00
ivel.santos
bef8549afa Helix mode: move_next_word 2025-04-03 06:13:05 +02:00
Levi Santos
b850befc5d Helix mode: adding extend_line_below 2025-04-03 06:13:05 +02:00
8a0e048674
fix: don't reverse insert pairs when selection is reversed
closes #204
2025-03-18 16:25:52 +01:00
47a6024c80
feat: add caching of tree-sitter query objects 2025-03-18 14:26:31 +01:00
1943d65924
Merge branch 'master' into zig-0.14 2025-03-06 17:14:56 +01:00
a5bf57e0e6
feat: add config options to disable scrollbars and/or file icons 2025-03-06 17:11:49 +01:00
ce6df051fb
Merge branch 'master' into zig-0.14 2025-03-05 21:59:16 +01:00
3408751d11
feat: also add extra new line and indent for () and [] 2025-03-05 21:59:00 +01:00
4cdd439b4a
Merge branch 'master' into zig-0.14 2025-03-05 21:28:38 +01:00
04ad617fb2
feat: indent and insert extra new line in smart_insert_line between braces
closes #197
2025-03-05 21:27:27 +01:00
a56d97c85d
fix: add Meta declarations post-merge 2025-03-04 21:18:49 +01:00
a959563bc7
Merge branch 'master' into zig-0.14 2025-03-04 21:15:14 +01:00
c984f3c392
feat: add smart_delete_backward command for improved smart pair handling 2025-03-04 19:51:31 +01:00
e34aed4a95
feat: improve smart_insert_pair and add smart_insert_pair_close 2025-03-04 19:06:51 +01:00
e285099253
refactor: fix spelling of egc_at function 2025-03-04 18:50:38 +01:00
48f889d4cf
Merge branch 'master' into zig-0.14 2025-03-02 21:51:19 +01:00
afcda4fc01
fix: don't restore editor view rows and cols 2025-03-02 21:48:34 +01:00
70612f211a
feat: add save_file_with_formatting command 2025-03-02 21:47:44 +01:00
Gero Schwäricke
514e175ef4 feat: save file without formatting 2025-03-01 21:22:29 +01:00
d0ce904faa
fix: add missing Meta types 2025-02-28 21:48:23 +01:00
dceb433e9e
Merge branch 'master' into zig-0.14 2025-02-28 21:43:10 +01:00
c9333372e9
build: fix tracy build 2025-02-28 21:42:39 +01:00
4389eccdce
Merge branch 'master' into zig-0.14 2025-02-26 22:04:42 +01:00
67f1ab1697
feat: add smart_insert_pair command
closes #90
2025-02-26 22:03:50 +01:00
8f9b2d15f7
Merge branch 'master' into zig-0.14 2025-02-25 21:40:53 +01:00
57a75a08d6
feat: make join_next_line collapse whitespace 2025-02-25 21:38:06 +01:00
bb3ca15679
refactor: replace white_space with whitespace 2025-02-25 21:28:33 +01:00
3ef51454cd
Merge branch 'master' into zig-0.14 2025-02-22 23:53:43 +01:00
7747dd3acf
refactor: add more tracy zones to measure startup performance 2025-02-22 21:26:17 +01:00