-
Notifications
You must be signed in to change notification settings - Fork 15
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
[FEATURE/BUG] Closing Symbol Override #121
Comments
The problem with trying to do things in a "smarter" way is that the editor has to guess what was the user intention in the first place, the situation you describe could be exactly what the user intended. I don't know if there's a way to create a set of rules that it's better for all cases. That's why currently the editor will simply do what it's suppose to do, just auto-insert. Maybe I can add an optional rule that defines that: never double insert same open or close tag when there's one at cursor position. So it should cover two cases: and instead of:
And also should allow to insert the character if tries one more time. |
The rule of thumb is the brackets must be balanced. It's just that. Very simple. |
We can do that 👍 |
Implemented Closing Symbol Override (SpartanJ/ecode#121), improved the auto-close bracket to be balanced.
OK, I added proper closing symbol override and balanced auto-close. I think it feels nice, I'll try to use it and see how it feels. |
I do not know if it is supposed to work or not yet implemented, but
when activating automated bracket-/tag-closing and then manually
closing a bracket/tag there'll be one closing bracket surplus.
Would be nice if it got replaced. But then only the automatically
generated bracket and correct layer, so you can close other brackets
inside first before replacing the correct layer (often saw LaTeX-editors
not layering, so I know to appreciate it if it was a feature too...).
The text was updated successfully, but these errors were encountered: