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

Support snippets that fill hole with a target #795

Open
pokey opened this issue Jun 27, 2022 · 0 comments
Open

Support snippets that fill hole with a target #795

pokey opened this issue Jun 27, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@pokey
Copy link
Member

pokey commented Jun 27, 2022

  • Can say eg "snip null check air" if you have a snippet called "null check" and it will insert snippet with particular snippet hole filled with "air"
  • Also support "snip null check air after bat" to insert after something
  • Apply wrapper scope type for given hole
  • Support "move" version?
  • Cool use case would be initialising variables in constructor, eg "snip init air after bat" would add eg self.apple = apple; after statement bat
  • Would be cool if you could "snip init air and bat and cap" to insert three initialisations
  • Alternately providing list target should maybe try to fill out multiple holes with the given items 🤔
  • Worth thinking through relationship to Smarter snippet holes #445
@auscompgeek auscompgeek added the enhancement New feature or request label Jul 25, 2023
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