You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
Currently in html-like syntax (html, vue, blade, etc), when selecting a tag that includes properties, both the tag and the properties are matched. There are two issues I'm running into with this:
<div class="modal alerts"> looks the same as <div class="modal_alerts"> when the cursor is inside the matched div, and
Double clicking selects words or %, with a priority on %, so double clicking on a long class name to select it selects the entire block.
This isn't an issue, but it also feels inconsistent that double clicking on the "cool" class in this highlights the block:
<divid="cool" class="cool">
...
</div>
while double clicking on the "cool" class in this highlights "cool":
<divid="cool"
class="cool">
...
</div>
Describe the solution you'd like
If vim-matchup only considered the <div portion of the tag instead of <div ...> it would solve the above issues and make the behaviour more consistent between formatting styles.
Describe alternatives you've considered
Alternatively, there could be a toggle or regex override to allow people running into the same issues I am to get this behaviour if the current behaviour is helping some other use case.
Additional context
Thanks for your time!
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
Currently in html-like syntax (html, vue, blade, etc), when selecting a tag that includes properties, both the tag and the properties are matched. There are two issues I'm running into with this:
<div class="modal alerts">
looks the same as<div class="modal_alerts">
when the cursor is inside the matched div, andThis isn't an issue, but it also feels inconsistent that double clicking on the "cool" class in this highlights the block:
while double clicking on the "cool" class in this highlights "cool":
Describe the solution you'd like
If vim-matchup only considered the
<div
portion of the tag instead of<div ...>
it would solve the above issues and make the behaviour more consistent between formatting styles.Describe alternatives you've considered
Alternatively, there could be a toggle or regex override to allow people running into the same issues I am to get this behaviour if the current behaviour is helping some other use case.
Additional context
Thanks for your time!
The text was updated successfully, but these errors were encountered: