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
{{ message }}
This repository has been archived by the owner on Jan 25, 2022. It is now read-only.
I think this is a behavior of the core editor (producing a second ' or " if you type the first). I don't think that a plugin can change this based on the context of an expected lifetime (at least I'm not aware of a way to do this)
I can fix it by deleting one line of bracket-matcher, but I cannot find a way to add an option for bracket-matcher, the callback hell is too complex for me to understand :D.
Also given the name here I don't understand why bracket-matcher does this, is it handling some behavior inside Atom?
Highlight the matching bracket for the (){}[] character under the cursor. Move the cursor to the matching bracket with ctrl-m. (91297 downloads, 74 stars)
Maybe I should open an issue on bracket-matcher suggesting adding the desired option, but I'm not sure.
Since Atom's bracket-matcher can be configured now, I added a configuration that excludes single quotes from being autocompleted. This fixes the annoying autocompletion of a second single quote whenever you want to type a lifetime parameter. However this unfortunately completely disables autocompletion for single quotes, i.e. also for character literals where it was actually useful.
I guess this is still better than before. Feedback welcome.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
The text was updated successfully, but these errors were encountered: