Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"bring as" syntax transformation #60

Open
AndreasArvidsson opened this issue Jul 2, 2021 · 3 comments
Open

"bring as" syntax transformation #60

AndreasArvidsson opened this issue Jul 2, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@AndreasArvidsson
Copy link
Member

It would be nice if we were able to bring multiple targets and then transform them.
bring air and bat and cap as args
bring air and bat and cap as list

@pokey
Copy link
Member

pokey commented Jul 2, 2021

I also wonder if in some situations the transformation could be inferred automatically from context. Or I guess in theory you might say "bring air and bat and cap to arg". Could conceivably argue that's correct but maybe confusing

@pokey pokey added the enhancement New feature or request label Jul 3, 2021
@pokey pokey changed the title Bring as syntax transformation "bring as" syntax transformation Jul 9, 2021
@pokey
Copy link
Member

pokey commented Jan 10, 2022

We'll probably do this one using snippets, once snippets support variables that can be lists

@pokey pokey mentioned this issue Jan 11, 2022
8 tasks
@pokey
Copy link
Member

pokey commented May 20, 2023

We could add a new modifier "cast <scope>" that would convert the target to the given type without expanding. Eg

  • "bring cast arg every name air"
  • "pour cast block two lines"
  • "take every instance cast token word"
  • "take every instance cast char air"
  • "drink cast token word"

thetomcraig-aya pushed a commit to thetomcraig/cursorless that referenced this issue Mar 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants