cursorless-dev / cursorless

Don't let the cursor slow you down
https://www.cursorless.org/
MIT License
1.13k stars 79 forks source link

parsed actions: Handle destination placeholders #2439

Open pokey opened 3 months ago

pokey commented 3 months ago

Something like this:

big bring <user.cursorless_target> <user.cursorless_destination>:
    user.cursorless_custom_command_destination("big bring <target> <destination>", cursorless_destination, cursorless_target)

The reason to have a separate action (cursorless_custom_command_destination instead of using existing cursorless_custom_command) is that way we don't have to mix targets and destnations

We would add a new type of DestinationDescriptor of type "placeholder", and add that to out custom command grammar. I don't think it needs to be a mark, because you're not allowed to put modifiers before a destination