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

Feature request: autoclose braces #87

Open
edwloef opened this issue Dec 21, 2024 · 2 comments
Open

Feature request: autoclose braces #87

edwloef opened this issue Dec 21, 2024 · 2 comments
Labels
enhancement New feature or request question Further information is requested
Milestone

Comments

@edwloef
Copy link
Contributor

edwloef commented Dec 21, 2024

No description provided.

@neurocyte neurocyte added the enhancement New feature or request label Dec 21, 2024
@neurocyte neurocyte added this to the v0.3.0 milestone Dec 21, 2024
@neurocyte neurocyte added the question Further information is requested label Dec 24, 2024
@neurocyte
Copy link
Owner

What exactly do you mean by autoclose braces? Is this perhaps covered by #90?

@edwloef
Copy link
Contributor Author

edwloef commented Dec 24, 2024

This should definitely be an option, but the way I think of it is that if typing a "(" would lead to braces being unbalanced afterwards, it should insert "()" instead and place my cursor in the middle. Similar situation for ")", except if typing it would lead to braces becoming unbalanced and there's a ")" right of my cursor it should just skip over it and not insert anything.

Since it seems like "electric_pair" would be a separate command and not something you can just enable I don't think this is covered by it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants