From 622885853d2533ef12542e60dbbeb3ac1e82e000 Mon Sep 17 00:00:00 2001 From: pagedown Date: Tue, 30 Nov 2021 12:38:19 +0800 Subject: [PATCH] Fix remote control detach-tab detach-window --- kitty/rc/detach_tab.py | 4 ++-- kitty/rc/detach_window.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kitty/rc/detach_tab.py b/kitty/rc/detach_tab.py index 42cdb7a7a..3d41799b1 100644 --- a/kitty/rc/detach_tab.py +++ b/kitty/rc/detach_tab.py @@ -16,7 +16,7 @@ class DetachTab(RemoteCommand): ''' match: Which tab to detach - target: Which OS Window to move the detached tab to + target_tab: Which OS Window that containing the target tab to move the detached tab to self: Boolean indicating whether to detach the tab the command is run in ''' @@ -33,7 +33,7 @@ If specified detach the tab this command is run in, rather than the active tab. argspec = '' def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType: - return {'match': opts.match, 'target': opts.target_tab, 'self': opts.self} + return {'match': opts.match, 'target_tab': opts.target_tab, 'self': opts.self} def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType: match = payload_get('match') diff --git a/kitty/rc/detach_window.py b/kitty/rc/detach_window.py index 99ffe4987..e018ad6cd 100644 --- a/kitty/rc/detach_window.py +++ b/kitty/rc/detach_window.py @@ -17,7 +17,7 @@ class DetachWindow(RemoteCommand): ''' match: Which window to detach - target: Which tab to move the detached window to + target_tab: Which tab to move the detached window to self: Boolean indicating whether to detach the window the command is run in ''' @@ -35,7 +35,7 @@ If specified detach the window this command is run in, rather than the active wi argspec = '' def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType: - return {'match': opts.match, 'target': opts.target_tab, 'self': opts.self} + return {'match': opts.match, 'target_tab': opts.target_tab, 'self': opts.self} def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType: windows = self.windows_for_match_payload(boss, window, payload_get)