diff options
author | WindSoilder | 2022-01-16 01:41:21 +0000 |
---|---|---|
committer | GitHub | 2022-01-16 01:41:21 +0000 |
commit | 22297d0b40ae43764d531bf0416ff22abbdfb61a (patch) | |
tree | a50030573a86c905544d01de0821bda09baf02e3 /helix-term/src/keymap.rs | |
parent | 38ca8daa09d18d78ca48ae4edd0ca33c67e65f24 (diff) |
Add alt-backspace, alt-<, alt->, ctrl-j to insert mode (#1441)
* add alt-backspace keymap to delete word backward
* add more useful keymap
* map to correct command
* add C-j to insert_newline
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r-- | helix-term/src/keymap.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index 49f8469a..c4bd25ed 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -751,8 +751,10 @@ impl Default for Keymaps { "del" => delete_char_forward, "C-d" => delete_char_forward, "ret" => insert_newline, + "C-j" => insert_newline, "tab" => insert_tab, "C-w" => delete_word_backward, + "A-backspace" => delete_word_backward, "A-d" => delete_word_forward, "left" => move_char_left, @@ -767,6 +769,8 @@ impl Default for Keymaps { "A-left" => move_prev_word_end, "A-f" => move_next_word_start, "A-right" => move_next_word_start, + "A-<" => goto_file_start, + "A->" => goto_file_end, "pageup" => page_up, "pagedown" => page_down, "home" => goto_line_start, |