8
8
ImplicitDestination ,
9
9
)
10
10
from .bring_move import BringMoveTargets
11
- from .call import cursorless_call_action
12
11
from .execute_command import cursorless_execute_command_action
13
12
from .homophones import cursorless_homophones_action
14
13
from .replace import cursorless_replace_action
44
43
"wrap_action" ,
45
44
"insert_snippet_action" ,
46
45
"reformat_action" ,
46
+ "call_action" ,
47
47
"experimental_action" ,
48
48
]
49
49
50
50
callback_actions : dict [str , Callable [[CursorlessTarget ], None ]] = {
51
- "callAsFunction" : cursorless_call_action ,
52
51
"findInDocument" : actions .user .private_cursorless_find ,
53
52
"nextHomophone" : cursorless_homophones_action ,
54
53
}
70
69
"{user.cursorless_simple_action} |"
71
70
"{user.cursorless_experimental_action} |"
72
71
"{user.cursorless_callback_action} |"
72
+ "{user.cursorless_call_action} |"
73
73
"{user.cursorless_custom_action}"
74
74
)
75
75
)
@@ -96,6 +96,8 @@ def cursorless_command(action_name: str, target: CursorlessTarget):
96
96
actions .user .private_cursorless_bring_move (
97
97
action_name , BringMoveTargets (target , ImplicitDestination ())
98
98
)
99
+ elif action_name == "callAsFunction" :
100
+ actions .user .private_cursorless_call (target )
99
101
elif action_name in no_wait_actions :
100
102
action = {"name" : action_name , "target" : target }
101
103
actions .user .private_cursorless_command_no_wait (action )
0 commit comments