Mark combine as an action
This commit is contained in:
parent
5768c54c5b
commit
c60d09f3b2
1 changed files with 11 additions and 0 deletions
|
|
@ -783,6 +783,17 @@ def report_match(f: Callable) -> None:
|
|||
return False
|
||||
|
||||
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:
|
||||
self.dispatch_action(key_action)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue