Skip to content

"dumber" implementation of matching pairs #673

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

Closed
AndreasArvidsson opened this issue May 12, 2022 · 1 comment
Closed

"dumber" implementation of matching pairs #673

AndreasArvidsson opened this issue May 12, 2022 · 1 comment

Comments

@AndreasArvidsson
Copy link
Member

AndreasArvidsson commented May 12, 2022

Sometimes I feel that I would want to have a dumber version of matching pairs.

For example I had this code <div value={"foo"}></div> and I should have said "paste to string" but I incorrectly said "paste to inside" and ended up with <div value={""bar""}></div>.
My first instinct was that I now have too many bounds so I said "chuck bounds" which of course gave me <div value=""bar""></div>.

An implementation of matching pair that just looks to the left and to the right of the selection would be preferable in most cases I think.

@AndreasArvidsson
Copy link
Member Author

This is not a problem anymore since we migrated to the new scope handler

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