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 8
8
assert COMMAND_VERSION == 7
9
9
10
10
action_callbacks = {
11
- "getText" : lambda : [actions .edit .selected_text ()],
12
11
"setSelection" : actions .skip ,
13
12
"setSelectionBefore" : actions .edit .left ,
14
13
"setSelectionAfter" : actions .edit .right ,
@@ -75,6 +74,12 @@ def get_action_callback(fallback: dict) -> Callable:
75
74
return lambda : wrap_with_paired_delimiter (
76
75
fallback ["left" ], fallback ["right" ]
77
76
)
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 ())
78
83
79
84
raise ValueError (f"Unknown Cursorless fallback action: { action } " )
80
85
You can’t perform that action at this time.
0 commit comments