From 1c2585202145467f0fde7ad9c571e462081c3656 Mon Sep 17 00:00:00 2001 From: wojciechkepka Date: Fri, 18 Jun 2021 19:09:37 +0200 Subject: Make arrow keys and page up/down work in insert mode --- helix-term/src/keymap.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'helix-term/src') diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs index a2fdbdd1..f6bcbcc9 100644 --- a/helix-term/src/keymap.rs +++ b/helix-term/src/keymap.rs @@ -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, )), -- cgit v1.2.3-70-g09d2