Add arrow-key bindings for window switching (#933)
This commit is contained in:
parent
e5de103728
commit
f140a2a00e
2 changed files with 8 additions and 8 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue