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

Delete matching pair in insert mode #3071

Closed
jefftime opened this issue Jul 14, 2022 · 2 comments
Closed

Delete matching pair in insert mode #3071

jefftime opened this issue Jul 14, 2022 · 2 comments
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue

Comments

@jefftime
Copy link

jefftime commented Jul 14, 2022

When in insert mode, the auto pair feature will insert a closing pair to match the input. For example, typing ( will insert a ) immediately. I would appreciate it if deleting the ( would also delete the auto inserted ). I only expect this behavior when the pairs are next to each other (e.g. ()) as in other modern editors

This makes it a quick undo if I accidentally type a wrong pair

@jefftime jefftime added the C-enhancement Category: Improvements label Jul 14, 2022
@jefftime
Copy link
Author

jefftime commented Jul 14, 2022

I looked at auto_pairs.rs and it looks like there's a TODO comment in there to address this exact situation. I believe this issue can be closed

@kirawi
Copy link
Member

kirawi commented Jul 14, 2022

Duplicate of #1673

@kirawi kirawi marked this as a duplicate of #1673 Jul 14, 2022
@kirawi kirawi closed this as not planned Won't fix, can't repro, duplicate, stale Jul 14, 2022
@kirawi kirawi added the R-duplicate Duplicated issue: please refer to the linked issue label Jul 14, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-enhancement Category: Improvements R-duplicate Duplicated issue: please refer to the linked issue
Projects
None yet
Development

No branches or pull requests

2 participants