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

Autocomplete Paired Glyphs #14

Open
goossens opened this issue Sep 11, 2023 · 1 comment
Open

Autocomplete Paired Glyphs #14

goossens opened this issue Sep 11, 2023 · 1 comment

Comments

@goossens
Copy link

In my old fork of ImGuiColorTextEdit, I had a feature to autocomplete paired glyphs. So when typing [, {, (, “ or ‘, the matching glyph was also added. Undo removed both characters. The feature is configurable and the default is off.

I have ported this feature to this fork and you can see my changed at goossens@66d8c59. Let me know if you want a put request.

Let me know if you want a pull request.

@santaclose
Copy link
Owner

yeah I'm skeptical about this because it has happened to me that editors trying to be smart end up being annoying. Like, typing closing bracket first can make it add an extra closing bracket. It can definitely save time when coding though. I'll see if I can test your implementation. Related to this, maybe we should also surround selection if pressing open bracket key with text selected

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

2 participants