Skip to content

Commit

Permalink
Make arrow keys and page up/down work in insert mode
Browse files Browse the repository at this point in the history
  • Loading branch information
vv9k authored and cessen committed Jun 19, 2021
1 parent c5a2fd5 commit 1c25852
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions helix-term/src/keymap.rs
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,12 @@ impl Default for Keymaps {
key!(Delete) => Command::delete_char_forward,
key!(Enter) => Command::insert_newline,
key!(Tab) => Command::insert_tab,
key!(Left) => Command::move_char_left,
key!(Down) => Command::move_line_down,
key!(Up) => Command::move_line_up,
key!(Right) => Command::move_char_right,
key!(PageUp) => Command::page_up,
key!(PageDown) => Command::page_down,
ctrl!('x') => Command::completion,
ctrl!('w') => Command::delete_word_backward,
)),
Expand Down

0 comments on commit 1c25852

Please sign in to comment.