The Wayback Machine - https://web.archive.org/web/20210105132029/https://github.com/mre/vscode-snippet/issues/28
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

Make snippet title configurable #28

Open
mre opened this issue Oct 21, 2019 · 0 comments
Open

Make snippet title configurable #28

mre opened this issue Oct 21, 2019 · 0 comments

Comments

@mre
Copy link
Owner

@mre mre commented Oct 21, 2019

As soon as #27 gets merged, we could add a config option for changing the snippet title.
The default would be [language] snippet query, e.g. [python] split string, but we could make that adjustable.
For instance, users could decide to set it to split string - python or anything else.

To make this work, we document the variable names that are supported for the title string:

  • ${language} - the programming language
  • ${query} - the snippet query (search text)
  • ${index} - the number of the snippet (e.g. 3 for the third answer)
  • maybe more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.