aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorGokul Soumya2021-09-10 14:14:23 +0000
committerGitHub2021-09-10 14:14:23 +0000
commit94abc52b3b0929f399cea14e1efcf2c1d0a31ad8 (patch)
treea8d849b719a6f670c32c390070f3142e1b628e65 /helix-term/src
parent0b1bc566e4e3cfa88e23133fb018c998f2052c52 (diff)
feat: Sticky view mode with Z (#719)
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/keymap.rs16
1 files changed, 16 insertions, 0 deletions
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index 1b9d87b5..f38c8a40 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -563,6 +563,22 @@ 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,
+ },
+ "Z" => { "View" sticky=true
+ "z" | "c" => align_view_center,
+ "t" => align_view_top,
+ "b" => align_view_bottom,
+ "m" => align_view_middle,
+ "k" => scroll_up,
+ "j" => scroll_down,
+ "b" => page_up,
+ "f" => page_down,
+ "u" => half_page_up,
+ "d" => half_page_down,
},
"\"" => select_register,