File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 88assert COMMAND_VERSION == 7
99
1010action_callbacks = {
11- "getText" : lambda : [actions .edit .selected_text ()],
1211 "setSelection" : actions .skip ,
1312 "setSelectionBefore" : actions .edit .left ,
1413 "setSelectionAfter" : actions .edit .right ,
@@ -75,6 +74,12 @@ def get_action_callback(fallback: dict) -> Callable:
7574 return lambda : wrap_with_paired_delimiter (
7675 fallback ["left" ], fallback ["right" ]
7776 )
77+ case "getText" :
78+ return lambda : [actions .edit .selected_text ()]
79+ case "findInWorkspace" :
80+ return lambda : actions .user .find_everywhere (actions .edit .selected_text ())
81+ case "findInDocument" :
82+ return lambda : actions .edit .find (actions .edit .selected_text ())
7883
7984 raise ValueError (f"Unknown Cursorless fallback action: { action } " )
8085
You can’t perform that action at this time.
0 commit comments