Merge branch 'fix-rc-detach' of https://github.com/page-down/kitty

This commit is contained in:
Kovid Goyal 2021-11-30 12:07:04 +05:30
commit 88410e032f
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 4 additions and 4 deletions

View File

@ -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')

View File

@ -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)