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

Feature request: yas-wrap-around-region alternatively use $1 instead of $0 #1161

Open
rodal2 opened this issue Apr 9, 2023 · 0 comments
Open

Comments

@rodal2
Copy link

rodal2 commented Apr 9, 2023

Hello, I love yasnippet. Most of my snippets look somewhat like this:

name: square brackets

key: s

expand-env: ((yas-wrap-around-region t))

--

[$1] $0

I would love to select some text, then use yas-insert-snippet to put the selection into the square brackets and jump to $0 with TAB. I am aware that I could use the variable yas-selected-text instead but I would really like a way to either set the expansion around $1 globally or per-snippet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant