From 6e838b83d88eb7c7071e91e2743465f64ea9d21f Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 31 Mar 2022 12:52:08 +0530 Subject: [PATCH] Add a note about how to use a new target tab to --target-tab docs --- kitty/rc/detach_window.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/kitty/rc/detach_window.py b/kitty/rc/detach_window.py index e018ad6cd..64d02774a 100644 --- a/kitty/rc/detach_window.py +++ b/kitty/rc/detach_window.py @@ -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`' ' 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 type=bool-set If specified detach the window this command is run in, rather than the active window.