Implement directional movement of windows

This commit is contained in:
Kovid Goyal
2018-09-08 23:51:09 +05:30
parent b18b705632
commit cb3671343e
4 changed files with 34 additions and 7 deletions

View File

@@ -9,8 +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`)
- Add new ``neighboring_window`` and ``move_window`` functions to switch to
neighboring windows in the current layout, and move them around, similar to
window movement in vim (:iss:`916`)
- Linux: Ensure that the python embedded in the kitty binary build always uses
UTF-8 mode (:iss:`924`)

View File

@@ -151,11 +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)::
Additionally, you can define shortcuts in :file:`kitty.conf` to focus neighboring
windows and move windows around (similar to window movement in vim)::
map ctrl+left neighboring_window left
map ctrl+down neighboring_window bottom
map shift+left move_window right
map ctrl+down neighboring_window down
map shift+down move_window up
...