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

@ -62,7 +62,7 @@
["shift+`", "switch_case"],
["shift+t", "till_prev_char"],
["shift+f", "move_to_char", "left"],
["shift+f", "move_to_char", "move_to_char_left"],
["shift+w", "move_next_long_word_start"],
["shift+b", "move_prev_long_word_start"],
["shift+e", "move_next_long_word_end"],
@ -107,7 +107,7 @@
["l", "move_right"],
["t", "find_till_char"],
["f", "move_to_char", "right"],
["f", "move_to_char", "move_to_char_right"],
["`", "to_lower"],
@ -256,6 +256,7 @@
"line_numbers": "relative",
"cursor": "block",
"selection": "inclusive",
"init_command": ["enable_selection"],
"press": [
["ctrl+b", "select_page_up"],
["ctrl+f", "select_page_down"],
@ -322,7 +323,7 @@
["shift+`", "switch_case"],
["shift+t", "extend_till_prev_char"],
["shift+f", "extend_prev_char"],
["shift+f", "move_to_char", "select_to_char_left_vim"],
["shift+w", "extend_next_long_word_start"],
["shift+b", "extend_prev_long_word_start"],
@ -371,17 +372,17 @@
["shift+1", "shell_insert_output"],
["shift+4", "shell_keep_pipe"],
["h", "select_left"],
["h", "select_left_helix"],
["j", "select_down"],
["k", "select_up"],
["l", "select_right"],
["l", "select_right_helix"],
["left", "select_left"],
["down", "select_down"],
["up", "select_up"],
["right", "select_right"],
["t", "extend_till_char"],
["f", "extend_next_char"],
["f", "move_to_char", "select_to_char_right_helix"],
["`", "switch_to_lowercase"],
@ -398,7 +399,7 @@
["g e", "move_buffer_end"],
["g f", "goto_file"],
["g h", "move_begin"],
["g l", "move_end"],
["g l", "select_end"],
["g s", "smart_move_begin"],
["g d", "goto_definition"],
["g y", "goto_type_definition"],