summaryrefslogtreecommitdiff
path: root/helix-term/src/keymap.rs
diff options
context:
space:
mode:
authorGokul Soumya2021-11-09 13:03:15 +0000
committerBlaž Hrastnik2021-11-10 15:58:25 +0000
commit80036b8bd3f7815b3256aae20a17b31efc104fbd (patch)
tree6a9b5f4e4d54db40197c9e532f3d72dfe8687631 /helix-term/src/keymap.rs
parent565490913510d9f4423a398f7d04def693cd12ae (diff)
Change page keybinds in view mode
b which was assigned to page_up conflicts with align to bottom, so this commit replaces page up, down, etc keybinds to use normal mode keybinds (C-f, C-b, etc) in view mode too.
Diffstat (limited to 'helix-term/src/keymap.rs')
-rw-r--r--helix-term/src/keymap.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index 593ff0f0..b41c950b 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -597,10 +597,10 @@ impl Default for Keymaps {
"m" => align_view_middle,
"k" => scroll_up,
"j" => scroll_down,
- "b" => page_up,
- "f" => page_down,
- "u" => half_page_up,
- "d" => half_page_down,
+ "C-b" | "pageup" => page_up,
+ "C-f" | "pagedown" => page_down,
+ "C-u" => half_page_up,
+ "C-d" => half_page_down,
},
"Z" => { "View" sticky=true
"z" | "c" => align_view_center,
@@ -609,10 +609,10 @@ impl Default for Keymaps {
"m" => align_view_middle,
"k" => scroll_up,
"j" => scroll_down,
- "b" => page_up,
- "f" => page_down,
- "u" => half_page_up,
- "d" => half_page_down,
+ "C-b" | "pageup" => page_up,
+ "C-f" | "pagedown" => page_down,
+ "C-u" => half_page_up,
+ "C-d" => half_page_down,
},
"\"" => select_register,