Add a new `neighboring_window` function to switch to neighboring windows in the current layout, similar to window movement in vim

Fixes #916
This commit is contained in:
Kovid Goyal
2018-09-08 08:59:11 +05:30
parent 9329b2c202
commit e39635ea16
5 changed files with 34 additions and 3 deletions

View File

@@ -9,6 +9,9 @@ Changelog
- Add a new ``last_used_layout`` function that can be mapped to a shortcut to
switch to the previously used window layout (:iss:`870`)
- Add a new ``neighboring_window`` function to switch to neighboring
windows in the current layout, similar to window movement in vim (:iss:`916`)
0.12.1 [2018-09-08]
------------------------------

View File

@@ -151,6 +151,13 @@ Focus specific window :sc:`first_window`, :sc:`second_window` ... :sc:`ten
(clockwise from the top-left)
======================== =======================
Additionally, you can define shortcuts in :file:`kitty.conf` to go to neighboring
windows (similar to window movement in vim)::
map ctrl+left neighboring_window left
map ctrl+down neighboring_window bottom
...
Other keyboard shortcuts
----------------------------------