diff options
author | Benjamin Rich | 2022-07-01 09:27:18 +0000 |
---|---|---|
committer | GitHub | 2022-07-01 09:27:18 +0000 |
commit | 15d96c843aca5b87fde26faf6c556265402c32c1 (patch) | |
tree | e94d547777e1ba12d72f4fe31e097c2495ccd1cc /helix-term/src/keymap | |
parent | edee2f4c347c53c4ba0ee7d8e4624e12e64d90fe (diff) |
Add new key bindings to view mode (#2803)
* Make view mode more pager-like
Addresses #2721
* Remove view mode bindings for J and K
Diffstat (limited to 'helix-term/src/keymap')
-rw-r--r-- | helix-term/src/keymap/default.rs | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/helix-term/src/keymap/default.rs b/helix-term/src/keymap/default.rs index 29b0b670..9b144758 100644 --- a/helix-term/src/keymap/default.rs +++ b/helix-term/src/keymap/default.rs @@ -273,8 +273,13 @@ pub fn default() -> HashMap<Mode, Keymap> { "j" | "down" => scroll_down, "C-b" | "pageup" => page_up, "C-f" | "pagedown" => page_down, - "C-u" => half_page_up, - "C-d" => half_page_down, + "C-u" | "backspace" => half_page_up, + "C-d" | "space" => half_page_down, + + "/" => search, + "?" => rsearch, + "n" => search_next, + "N" => search_prev, }, "Z" => { "View" sticky=true "z" | "c" => align_view_center, @@ -285,8 +290,13 @@ pub fn default() -> HashMap<Mode, Keymap> { "j" | "down" => scroll_down, "C-b" | "pageup" => page_up, "C-f" | "pagedown" => page_down, - "C-u" => half_page_up, - "C-d" => half_page_down, + "C-u" | "backspace" => half_page_up, + "C-d" | "space" => half_page_down, + + "/" => search, + "?" => rsearch, + "n" => search_next, + "N" => search_prev, }, "\"" => select_register, |