mirror of https://github.com/helix-editor/helix
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.pull/2320/head
parent
ab6a00e196
commit
c22873c33f
|
@ -296,9 +296,9 @@ undo-able "save point" until you return to normal mode.
|
||||||
| `Ctrl-r` | Insert a register content | `insert_register` |
|
| `Ctrl-r` | Insert a register content | `insert_register` |
|
||||||
| `Ctrl-w`, `Alt-Backspace` | Delete previous word | `delete_word_backward` |
|
| `Ctrl-w`, `Alt-Backspace` | Delete previous word | `delete_word_backward` |
|
||||||
| `Alt-d` | Delete next word | `delete_word_forward` |
|
| `Alt-d` | Delete next word | `delete_word_forward` |
|
||||||
| `Alt-b`, `Alt-Left` | Backward a word | `move_prev_word_end` |
|
| `Alt-b`, `Ctrl-Left` | Backward a word | `move_prev_word_end` |
|
||||||
| `Ctrl-b`, `Left` | Backward a char | `move_char_left` |
|
| `Ctrl-b`, `Left` | Backward a char | `move_char_left` |
|
||||||
| `Alt-f`, `Alt-Right` | Forward a word | `move_next_word_start` |
|
| `Alt-f`, `Ctrl-Right` | Forward a word | `move_next_word_start` |
|
||||||
| `Ctrl-f`, `Right` | Forward a char | `move_char_right` |
|
| `Ctrl-f`, `Right` | Forward a char | `move_char_right` |
|
||||||
| `Ctrl-e`, `End` | Move to line end | `goto_line_end_newline` |
|
| `Ctrl-e`, `End` | Move to line end | `goto_line_end_newline` |
|
||||||
| `Ctrl-a`, `Home` | Move to line start | `goto_line_start` |
|
| `Ctrl-a`, `Home` | Move to line start | `goto_line_start` |
|
||||||
|
|
|
@ -336,9 +336,9 @@ pub fn default() -> HashMap<Mode, Keymap> {
|
||||||
"right" => move_char_right,
|
"right" => move_char_right,
|
||||||
"C-f" => move_char_right,
|
"C-f" => move_char_right,
|
||||||
"A-b" => move_prev_word_end,
|
"A-b" => move_prev_word_end,
|
||||||
"A-left" => move_prev_word_end,
|
"C-left" => move_prev_word_end,
|
||||||
"A-f" => move_next_word_start,
|
"A-f" => move_next_word_start,
|
||||||
"A-right" => move_next_word_start,
|
"C-right" => move_next_word_start,
|
||||||
"A-<" => goto_file_start,
|
"A-<" => goto_file_start,
|
||||||
"A->" => goto_file_end,
|
"A->" => goto_file_end,
|
||||||
"pageup" => page_up,
|
"pageup" => page_up,
|
||||||
|
|
Loading…
Reference in New Issue