Mark combine as an action

This commit is contained in:
Kovid Goyal 2021-06-29 12:28:44 +05:30
parent 5768c54c5b
commit c60d09f3b2
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -783,6 +783,17 @@ class Boss:
return False return False
def combine(self, *actions: KeyAction) -> None: def combine(self, *actions: KeyAction) -> None:
'''
@ac:misc: Combine multiple actions and map to a single keypress
The syntax is::
map key combine <separator> action1 <separator> action2 <separator> action3 ...
For example::
map kitty_mod+e combine : new_window : next_layout
'''
for key_action in actions: for key_action in actions:
self.dispatch_action(key_action) self.dispatch_action(key_action)