Add a note about how to use a new target tab to --target-tab docs

This commit is contained in:
Kovid Goyal 2022-03-31 12:52:08 +05:30
parent 5297223ee3
commit 6e838b83d8
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -27,7 +27,9 @@ class DetachWindow(RemoteCommand):
' or add it to the specified tab. Use the special value :code:`new` for :option:`kitty @ detach-window --target-tab`' ' or add it to the specified tab. Use the special value :code:`new` for :option:`kitty @ detach-window --target-tab`'
' to move to a new tab. If no target tab is specified the window is moved to a new OS window.' ' to move to a new tab. If no target tab is specified the window is moved to a new OS window.'
) )
options_spec = MATCH_WINDOW_OPTION + '\n\n' + MATCH_TAB_OPTION.replace('--match -m', '--target-tab -t') + '''\n options_spec = MATCH_WINDOW_OPTION + '\n\n' + MATCH_TAB_OPTION.replace('--match -m', '--target-tab -t') + '''Use the special value :code:`new` to move to a new tab.
--self --self
type=bool-set type=bool-set
If specified detach the window this command is run in, rather than the active window. If specified detach the window this command is run in, rather than the active window.