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

Improved HTML snippet expansion #1518

Open
jlconlin opened this issue Jun 3, 2024 · 0 comments
Open

Improved HTML snippet expansion #1518

jlconlin opened this issue Jun 3, 2024 · 0 comments

Comments

@jlconlin
Copy link
Contributor

jlconlin commented Jun 3, 2024

I'd like to improve the expansion of the HTML snippets. Most HTML snippets only have a single tab stop and it is between an opening and closing tag. To use one of these snippets, I have to invoke the snippet, press <tab>, enter some text, press esc, move past the closing tag, enter insert mode and continue. This could be made much easier by adding one more tab stop.

For example (there are many like this) the li snippet is defined like this:

snippet li
	<li>${0}</li>

I'd like to change it (and others) to look like this:

snippet li
	<li>${1}</li>${0}

I'd like to make a change to html.snippet, but wanted to start a conversation about this before I go and make some changes.

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