-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Surround: Keep HTML attributes when changing tags #1938
Comments
Asciinema recording of the desired behavior: https://asciinema.org/a/miZYWNYNIYFQTcDDifXgMtBW6 |
I think this is a very useful feature when editing html and jsx code. |
I would love this too. In my opinion tag replacement should by default preserve attributes. It's rare for me that I want to replace tags and simultaneously wipe the attributes. |
…ibutes fixes #1938 Allow to retain attributes when using surround
The VSCodeVim team prioritizes issues based on reaction count.
Feature request:
I'd like to be able to use surround to change a tag, but keeping the existing attributes.
This functionality exists in the official vim-surround:
https://stackoverflow.com/a/31098722/664533
tpope/vim-surround#131
e.g.
<h2 class="foo>b*ar</h2>
cstth3>
- changes h2 to h3, removes attributes - current behaviourcstth3
ENTER - changes h2 to h3, keeps class attributeApart from that, VSCodeVim surround is great!
The text was updated successfully, but these errors were encountered: