mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-18 06:25:13 +02:00
Create an easy to use alias for running remote control scripts
This commit is contained in:
@@ -287,6 +287,14 @@ def remote_control(func: str, rest: str) -> FuncArgsType:
|
||||
return func, args
|
||||
|
||||
|
||||
@func_with_args('remote_control_script')
|
||||
def remote_control_script(func: str, rest: str) -> FuncArgsType:
|
||||
func, args = shlex_parse(func, rest)
|
||||
if len(args) < 1:
|
||||
log_error('Too few arguments to remote_control_script function')
|
||||
return func, args
|
||||
|
||||
|
||||
@func_with_args('nth_os_window', 'nth_window', 'scroll_to_prompt', 'visual_window_select_action_trigger', 'next_layout')
|
||||
def single_integer_arg(func: str, rest: str) -> FuncArgsType:
|
||||
try:
|
||||
|
||||
Reference in New Issue
Block a user