Add a new `nth_window action that can be used to go to the nth window and also previously active windows, using negative numbers. Similarly, goto_tab` now accepts negative numbers to go to previous windows

Fix #1040
This commit is contained in:
Kovid Goyal
2018-10-21 10:59:06 +05:30
parent 691286f376
commit 097d11819b
5 changed files with 51 additions and 2 deletions

View File

@@ -15,6 +15,11 @@ Changelog
be bound to key presses in :file:`kitty.conf`. See
`https://sw.kovidgoyal.net/kitty/kittens/custom.html`_. (:iss:`870`)
- Add a new ``nth_window`` action that can be used to go to the nth window and
also previously active windows, using negative numbers. Similarly,
``goto_tab`` now accepts negative numbers to go to previous windows
(:iss:`1040`)
- Fix the ``*_with_cwd`` actions using the cwd of the overlay window rather
than the underlying window's cwd (:iss:`1045`)

View File

@@ -160,6 +160,13 @@ windows and move windows around (similar to window movement in vim)::
map shift+down move_window up
...
You can also define a shortcut to switch to the previously active window::
map ctrl+p nth_window -1
``nth_window`` will focus the nth window for positive numbers and the
previously active windows for negative numbers.
Other keyboard shortcuts
----------------------------------