summaryrefslogtreecommitdiff
path: root/helix-term
diff options
context:
space:
mode:
authorwojciechkepka2021-06-18 17:09:37 +0000
committerNathan Vegdahl2021-06-19 04:37:30 +0000
commit1c2585202145467f0fde7ad9c571e462081c3656 (patch)
treeda1080fd8389eb4439068adc13a71ec9e8992033 /helix-term
parentc5a2fd5da394b5b16695af9f2eb437e29be010f0 (diff)
Make arrow keys and page up/down work in insert mode
Diffstat (limited to 'helix-term')
-rw-r--r--helix-term/src/keymap.rs6
1 files changed, 6 insertions, 0 deletions
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,
)),