Add some missing no_response for rc commands
This commit is contained in:
parent
27ea367123
commit
c54a6b398b
@ -17,6 +17,7 @@ class FocusTab(RemoteCommand):
|
||||
|
||||
'''
|
||||
match/str: The tab to focus
|
||||
no_response/bool: Boolean indicating whether to wait for a response
|
||||
'''
|
||||
|
||||
short_desc = 'Focus the specified tab'
|
||||
@ -32,7 +33,7 @@ using this option means that you will not be notified of failures.
|
||||
argspec = ''
|
||||
|
||||
def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType:
|
||||
return {'match': opts.match}
|
||||
return {'match': opts.match, 'no_response': opts.no_response}
|
||||
|
||||
def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType:
|
||||
for tab in self.tabs_for_match_payload(boss, window, payload_get):
|
||||
|
||||
@ -18,6 +18,7 @@ if TYPE_CHECKING:
|
||||
class FocusWindow(RemoteCommand):
|
||||
'''
|
||||
match/str: The window to focus
|
||||
no_response/bool: Boolean indicating whether to wait for a response
|
||||
'''
|
||||
|
||||
short_desc = 'Focus the specified window'
|
||||
|
||||
@ -17,6 +17,7 @@ class LastUsedLayout(RemoteCommand):
|
||||
'''
|
||||
match/str: Which tab to change the layout of
|
||||
all/bool: Boolean to match all tabs
|
||||
no_response/bool: Boolean indicating whether to wait for a response
|
||||
'''
|
||||
|
||||
short_desc = 'Switch to the last used layout'
|
||||
@ -37,7 +38,7 @@ the command will exit with a success code.
|
||||
''' + '\n\n\n' + MATCH_TAB_OPTION
|
||||
|
||||
def message_to_kitty(self, global_opts: RCOptions, opts: 'CLIOptions', args: ArgsType) -> PayloadType:
|
||||
return {'match': opts.match, 'all': opts.all}
|
||||
return {'match': opts.match, 'all': opts.all, 'no_response': opts.no_response}
|
||||
|
||||
def response_from_kitty(self, boss: Boss, window: Optional[Window], payload_get: PayloadGetType) -> ResponseType:
|
||||
for tab in self.tabs_for_match_payload(boss, window, payload_get):
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user