Allow passing a `!neighbor` argument to the new_window mapping to open a new window next to the active window

Fixes #1746
This commit is contained in:
Kovid Goyal
2019-06-29 15:13:54 +05:30
parent 8c9d2d3ca2
commit 0be6c9cb97
5 changed files with 31 additions and 7 deletions

View File

@@ -1066,6 +1066,13 @@ Any programs running in that window will be allowed to control kitty.
For example::
map ctrl+enter new_window @ some_program
You can open a new window next to the currently active window or as the first window,
with::
map ctrl+n new_window !neighbor some_program
map ctrl+f new_window !first some_program
'''))
if is_macos:
k('new_window', 'cmd+enter', 'new_window', _('New window'), add_to_docs=False)