on master help sign in
Change A-left right to C-left right in insert (#2193)

Currently A-left move one word left and the behavior will be more consistent for people coming GUI world if the key was changed to control given that both browsers and editors like vscode uses C-left right by default to move word rather than alt.

commitc22873c33fa0163257b1421faa6f91268ad3a4d1 authorIvan Tham <pickfire@riseup.net> dateFri 29 Apr 2022, 14:50 (5 years ago) parentab6a00e
2 files changed+4−4
book/src/keymap.md+2−2 helix-term/src/keymap/default.rs+2−2
book/src/keymap.md+2−2
@@ -296,9 +296,9 @@ undo-able "save point" until you return to normal mode.
296296| `Ctrl-r` | Insert a register content | `insert_register` |
297297| `Ctrl-w`, `Alt-Backspace` | Delete previous word | `delete_word_backward` |
298298| `Alt-d` | Delete next word | `delete_word_forward` |
299−| `Alt-b`, `Alt-Left` | Backward a word | `move_prev_word_end` |
299+| `Alt-b`, `Ctrl-Left` | Backward a word | `move_prev_word_end` |
300300| `Ctrl-b`, `Left` | Backward a char | `move_char_left` |
301−| `Alt-f`, `Alt-Right` | Forward a word | `move_next_word_start` |
301+| `Alt-f`, `Ctrl-Right` | Forward a word | `move_next_word_start` |
302302| `Ctrl-f`, `Right` | Forward a char | `move_char_right` |
303303| `Ctrl-e`, `End` | Move to line end | `goto_line_end_newline` |
304304| `Ctrl-a`, `Home` | Move to line start | `goto_line_start` |
helix-term/src/keymap/default.rs+2−2
@@ -336,9 +336,9 @@ pub fn default() -> HashMap<Mode, Keymap> {
336336 "right" => move_char_right,
337337 "C-f" => move_char_right,
338338 "A-b" => move_prev_word_end,
339− "A-left" => move_prev_word_end,
339+ "C-left" => move_prev_word_end,
340340 "A-f" => move_next_word_start,
341− "A-right" => move_next_word_start,
341+ "C-right" => move_next_word_start,
342342 "A-<" => goto_file_start,
343343 "A->" => goto_file_end,
344344 "pageup" => page_up,