Skip to content

Commit

Permalink
Make view mode more pager-like
Browse files Browse the repository at this point in the history
  • Loading branch information
benjaminrich committed Jun 18, 2022
1 parent 45ce1eb commit c11d4d8
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions helix-term/src/keymap/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -268,8 +268,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" | "K" | "backspace" => half_page_up,
"C-d" | "J" | "space" => half_page_down,

"/" => search,
"?" => rsearch,
"n" => search_next,
"N" => search_prev,
},
"Z" => { "View" sticky=true
"z" | "c" => align_view_center,
Expand All @@ -280,8 +285,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" | "K" | "backspace" => half_page_up,
"C-d" | "J" | "space" => half_page_down,

"/" => search,
"?" => rsearch,
"n" => search_next,
"N" => search_prev,
},

"\"" => select_register,
Expand Down

0 comments on commit c11d4d8

Please sign in to comment.