From 1035b2aea170b68c7f0ed62fa0414e0ed48d5792 Mon Sep 17 00:00:00 2001 From: Jan Hrastnik Date: Mon, 5 Oct 2020 17:18:29 +0200 Subject: started work on page up/down --- helix-view/src/keymap.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'helix-view/src/keymap.rs') diff --git a/helix-view/src/keymap.rs b/helix-view/src/keymap.rs index c93c3c1f..27176423 100644 --- a/helix-view/src/keymap.rs +++ b/helix-view/src/keymap.rs @@ -140,6 +140,16 @@ pub fn default() -> Keymaps { code: KeyCode::Esc, modifiers: Modifiers::NONE }] => commands::normal_mode, + vec![Key { + code: KeyCode::PageUp, + modifiers: Modifiers::NONE + }] => commands::page_up, + vec![Key { + code: KeyCode::PageDown, + modifiers: Modifiers::NONE + }] => commands::page_down, + vec![shift!('u')] => commands::half_page_up, + vec![shift!('d')] => commands::half_page_down, ), state::Mode::Insert => hashmap!( vec![Key { -- cgit v1.2.3-70-g09d2