88 ImplicitDestination ,
99)
1010from .bring_move import BringMoveTargets
11- from .call import cursorless_call_action
1211from .execute_command import cursorless_execute_command_action
1312from .homophones import cursorless_homophones_action
1413from .replace import cursorless_replace_action
4443 "wrap_action" ,
4544 "insert_snippet_action" ,
4645 "reformat_action" ,
46+ "call_action" ,
4747 "experimental_action" ,
4848]
4949
5050callback_actions : dict [str , Callable [[CursorlessTarget ], None ]] = {
51- "callAsFunction" : cursorless_call_action ,
5251 "findInDocument" : actions .user .private_cursorless_find ,
5352 "nextHomophone" : cursorless_homophones_action ,
5453}
7069 "{user.cursorless_simple_action} |"
7170 "{user.cursorless_experimental_action} |"
7271 "{user.cursorless_callback_action} |"
72+ "{user.cursorless_call_action} |"
7373 "{user.cursorless_custom_action}"
7474 )
7575)
@@ -96,6 +96,8 @@ def cursorless_command(action_name: str, target: CursorlessTarget):
9696 actions .user .private_cursorless_bring_move (
9797 action_name , BringMoveTargets (target , ImplicitDestination ())
9898 )
99+ elif action_name == "callAsFunction" :
100+ actions .user .private_cursorless_call (target )
99101 elif action_name in no_wait_actions :
100102 action = {"name" : action_name , "target" : target }
101103 actions .user .private_cursorless_command_no_wait (action )
0 commit comments