aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGygaxis Vainhardt2021-10-30 01:48:00 +0000
committerGitHub2021-10-30 01:48:00 +0000
commitf140a2a00eecfe47115634cef3bad4fd51e03b71 (patch)
tree8dd9abb76c07752adfab4949e428ccecdc8b62ae
parente5de103728b7a1338056f70524362930695d6c85 (diff)
Add arrow-key bindings for window switching (#933)
-rw-r--r--book/src/keymap.md8
-rw-r--r--helix-term/src/keymap.rs8
2 files changed, 8 insertions, 8 deletions
diff --git a/book/src/keymap.md b/book/src/keymap.md
index 2ff8bfe6..9ed35f77 100644
--- a/book/src/keymap.md
+++ b/book/src/keymap.md
@@ -188,10 +188,10 @@ This layer is similar to vim keybindings as kakoune does not support window.
| `w`, `Ctrl-w` | Switch to next window | `rotate_view` |
| `v`, `Ctrl-v` | Vertical right split | `vsplit` |
| `s`, `Ctrl-s` | Horizontal bottom split | `hsplit` |
-| `h`, `Ctrl-h` | Move to left split | `jump_view_left` |
-| `j`, `Ctrl-j` | Move to split below | `jump_view_down` |
-| `k`, `Ctrl-k` | Move to split above | `jump_view_up` |
-| `l`, `Ctrl-l` | Move to right split | `jump_view_right` |
+| `h`, `Ctrl-h`, `left` | Move to left split | `jump_view_left` |
+| `j`, `Ctrl-j`, `down` | Move to split below | `jump_view_down` |
+| `k`, `Ctrl-k`, `up` | Move to split above | `jump_view_up` |
+| `l`, `Ctrl-l`, `right` | Move to right split | `jump_view_right` |
| `q`, `Ctrl-q` | Close current window | `wclose` |
#### Space mode
diff --git a/helix-term/src/keymap.rs b/helix-term/src/keymap.rs
index 5453020e..cd953c5c 100644
--- a/helix-term/src/keymap.rs
+++ b/helix-term/src/keymap.rs
@@ -540,10 +540,10 @@ impl Default for Keymaps {
"C-s" | "s" => hsplit,
"C-v" | "v" => vsplit,
"C-q" | "q" => wclose,
- "C-h" | "h" => jump_view_left,
- "C-j" | "j" => jump_view_down,
- "C-k" | "k" => jump_view_up,
- "C-l" | "l" => jump_view_right,
+ "C-h" | "h" | "left" => jump_view_left,
+ "C-j" | "j" | "down" => jump_view_down,
+ "C-k" | "k" | "up" => jump_view_up,
+ "C-l" | "l" | "right" => jump_view_right,
},
// move under <space>c