-
-
Notifications
You must be signed in to change notification settings - Fork 94
Expand cursorless talon command api #492
Copy link
Copy link
Open
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededtalonRelated to cursorless-talonRelated to cursorless-talon
Milestone
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or requesthelp wantedExtra attention is neededExtra attention is neededtalonRelated to cursorless-talonRelated to cursorless-talon
Type
Fields
Give feedbackNo fields configured for issues without a type.
We'd like for users to be able to define more complex custom grammars. To do so, they'll need full access to the types of commands supported by cursorless, whereas today they can just do a single target, with no extra arguments
extraArgsgetTextactionactions.user.cursorless_implicit_target_command?Proposal
See #492 (comment) below
Old proposal
cursorless_targetthat accepts a list of scope ids, followed by an optional target dict. Can accept None as last arg as well and that's equivalent to "this" / omitting mark. If it gets a target it prepends the containing scope modifiers to the target's modifierscursorless_target("every", "collectionItem", "this")Example
More verbose alternative
Use cases
Checking a box in a markdown checklist
See also #452 and #453
Consider if we want to support extending/overriding other internal cursorless features.
eg support for when focus is not on the text editor. #1717 (comment)