Make arrow keys and page up/down work in insert mode

This commit is contained in:
wojciechkepka 2021-06-18 19:09:37 +02:00 committed by Nathan Vegdahl
parent c5a2fd5da3
commit 1c25852021

View file

@ -321,6 +321,12 @@ impl Default for Keymaps {
key!(Delete) => Command::delete_char_forward, key!(Delete) => Command::delete_char_forward,
key!(Enter) => Command::insert_newline, key!(Enter) => Command::insert_newline,
key!(Tab) => Command::insert_tab, 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!('x') => Command::completion,
ctrl!('w') => Command::delete_word_backward, ctrl!('w') => Command::delete_word_backward,
)), )),