Open goossens opened 1 year ago
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
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 https://github.com/goossens/ImGuiColorTextEdit/commit/66d8c5987cbe1e5dd7b3031ac65ce15a3347a207. Let me know if you want a put request.
Let me know if you want a pull request.