Skip to content

Commit

Permalink
dont remove backspace and space mapping
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexanderDickie committed Aug 20, 2023
1 parent 3d4038e commit 4f2a143
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions helix-term/src/keymap/default.rs
Original file line number Diff line number Diff line change
Expand Up @@ -178,8 +178,8 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"esc" => normal_mode,
"C-b" | "pageup" => page_up,
"C-f" | "pagedown" => page_down,
"C-u" => page_cursor_half_up,
"C-d" => page_cursor_half_down,
"C-u" | "backspace" => page_cursor_half_up,
"C-d" | "space" => page_cursor_half_down,

"C-w" => { "Window"
"C-w" | "w" => rotate_view,
Expand Down Expand Up @@ -287,8 +287,8 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"j" | "down" => scroll_down,
"C-b" | "pageup" => page_up,
"C-f" | "pagedown" => page_down,
"C-u" => page_cursor_half_up,
"C-d" => page_cursor_half_down,
"C-u" | "backspace" => page_cursor_half_up,
"C-d" | "space" => page_cursor_half_down,

"/" => search,
"?" => rsearch,
Expand All @@ -306,6 +306,7 @@ pub fn default() -> HashMap<Mode, KeyTrie> {
"C-f" | "pagedown" => page_down,
"C-u" => page_cursor_half_up,
"C-d" => page_cursor_half_down,

"/" => search,
"?" => rsearch,
"n" => search_next,
Expand Down

0 comments on commit 4f2a143

Please sign in to comment.