We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3c9f3f6 commit 7c03fb7Copy full SHA for 7c03fb7
src/actions/get_text.py
@@ -11,13 +11,18 @@ def cursorless_get_text_action(
11
ensure_single_target: Optional[bool] = None,
12
) -> list[str]:
13
"""Get target texts"""
14
+ options = {}
15
+
16
+ if show_decorations is not None:
17
+ options["showDecorations"] = show_decorations
18
19
+ if ensure_single_target is not None:
20
+ options["ensureSingleTarget"] = ensure_single_target
21
22
return actions.user.private_cursorless_command_get(
23
{
24
"name": "getText",
- "options": {
- "showDecorations": show_decorations,
- "ensureSingleTarget": ensure_single_target,
- },
25
+ "options": options,
26
"target": target,
27
}
28
)
0 commit comments