I wish there was a plugin that keeps track of unclosed pairs, but instead of inserting them automatically, it just reminds you of them and their order.
For some reason, inserting pairs automatically disorients me a bit.
I think all of those suggestions are feasible. However, what should the plugin do in situations when a delimiter is deliberately left unclosed, such as character literals? I wouldn’t want it to permanently suggest the corresponding closing delimiter.
6 Comments
matcha_addict@lemy.lol · 4 pts · 2y
I love the idea of less-automatic pairs.
I wish there was a plugin that keeps track of unclosed pairs, but instead of inserting them automatically, it just reminds you of them and their order.
For some reason, inserting pairs automatically disorients me a bit.
xigoi@lemmy.sdf.org · 1 pts · 2y
That’s an interesting idea. How exactly would you imagine it to work?
matcha_addict@lemy.lol · 1 pts · 2y
There's a couple of ways I can see it:
The following is less preferred but still works: maybe the status line or a pop up shows the order of unclosed pairs.
xigoi@lemmy.sdf.org · 1 pts · 2y
I think all of those suggestions are feasible. However, what should the plugin do in situations when a delimiter is deliberately left unclosed, such as character literals? I wouldn’t want it to permanently suggest the corresponding closing delimiter.
promitheas@iusearchlinux.fyi · 3 pts · 2y
Ive been looking for an alternative auto-pair plugin, so I'll check this out. Thanks
philwills@programming.dev · 2 pts · 2y
Interesting idea... Thanks!