Add arrow-key bindings for window switching (#933)

pull/936/head
Gygaxis Vainhardt 3 years ago committed by GitHub
parent e5de103728
commit f140a2a00e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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` | | `w`, `Ctrl-w` | Switch to next window | `rotate_view` |
| `v`, `Ctrl-v` | Vertical right split | `vsplit` | | `v`, `Ctrl-v` | Vertical right split | `vsplit` |
| `s`, `Ctrl-s` | Horizontal bottom split | `hsplit` | | `s`, `Ctrl-s` | Horizontal bottom split | `hsplit` |
| `h`, `Ctrl-h` | Move to left split | `jump_view_left` | | `h`, `Ctrl-h`, `left` | Move to left split | `jump_view_left` |
| `j`, `Ctrl-j` | Move to split below | `jump_view_down` | | `j`, `Ctrl-j`, `down` | Move to split below | `jump_view_down` |
| `k`, `Ctrl-k` | Move to split above | `jump_view_up` | | `k`, `Ctrl-k`, `up` | Move to split above | `jump_view_up` |
| `l`, `Ctrl-l` | Move to right split | `jump_view_right` | | `l`, `Ctrl-l`, `right` | Move to right split | `jump_view_right` |
| `q`, `Ctrl-q` | Close current window | `wclose` | | `q`, `Ctrl-q` | Close current window | `wclose` |
#### Space mode #### Space mode

@ -540,10 +540,10 @@ impl Default for Keymaps {
"C-s" | "s" => hsplit, "C-s" | "s" => hsplit,
"C-v" | "v" => vsplit, "C-v" | "v" => vsplit,
"C-q" | "q" => wclose, "C-q" | "q" => wclose,
"C-h" | "h" => jump_view_left, "C-h" | "h" | "left" => jump_view_left,
"C-j" | "j" => jump_view_down, "C-j" | "j" | "down" => jump_view_down,
"C-k" | "k" => jump_view_up, "C-k" | "k" | "up" => jump_view_up,
"C-l" | "l" => jump_view_right, "C-l" | "l" | "right" => jump_view_right,
}, },
// move under <space>c // move under <space>c

Loading…
Cancel
Save