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.
imgbot
Gokul Soumya 3 years ago committed by Blaž Hrastnik
parent 5654909135
commit 80036b8bd3

@ -597,10 +597,10 @@ impl Default for Keymaps {
"m" => align_view_middle, "m" => align_view_middle,
"k" => scroll_up, "k" => scroll_up,
"j" => scroll_down, "j" => scroll_down,
"b" => page_up, "C-b" | "pageup" => page_up,
"f" => page_down, "C-f" | "pagedown" => page_down,
"u" => half_page_up, "C-u" => half_page_up,
"d" => half_page_down, "C-d" => half_page_down,
}, },
"Z" => { "View" sticky=true "Z" => { "View" sticky=true
"z" | "c" => align_view_center, "z" | "c" => align_view_center,
@ -609,10 +609,10 @@ impl Default for Keymaps {
"m" => align_view_middle, "m" => align_view_middle,
"k" => scroll_up, "k" => scroll_up,
"j" => scroll_down, "j" => scroll_down,
"b" => page_up, "C-b" | "pageup" => page_up,
"f" => page_down, "C-f" | "pagedown" => page_down,
"u" => half_page_up, "C-u" => half_page_up,
"d" => half_page_down, "C-d" => half_page_down,
}, },
"\"" => select_register, "\"" => select_register,

Loading…
Cancel
Save