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>
This commit is contained in:
Levi 2025-04-08 05:28:29 -03:00 committed by GitHub
parent 716f871d03
commit fb985a703a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 126 additions and 43 deletions

View file

@ -86,8 +86,8 @@
["<C-k>", "TODO"],
["F", "move_to_char", "left"],
["f", "move_to_char", "right"],
["F", "move_to_char", "move_to_char_left"],
["f", "move_to_char", "move_to_char_right"],
["<C-CR>", ["move_down"], ["move_begin"]],
["<CR>", ["move_down"], ["move_begin"]]
@ -100,6 +100,7 @@
"line_numbers": "relative",
"cursor": "block",
"selection": "normal",
"init_command": ["enable_selection"],
"press": [
["<Esc>", ["cancel"], ["enter_mode", "normal"]],
["k", "select_up"],
@ -115,9 +116,12 @@
["0", "move_begin"],
["^", "smart_move_begin"],
["$", "move_end"],
["$", "select_end"],
[":", "open_command_palette"],
["f", "move_to_char", "select_to_char_right"],
["F", "move_to_char", "select_to_char_left_vim"],
["p", ["paste_internal_vim"], ["enter_mode", "normal"]],
["P", ["paste_internal_vim"], ["enter_mode", "normal"]],