4 points

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.

permalink
report
reply
1 point

That’s an interesting idea. How exactly would you imagine it to work?

permalink
report
parent
reply
1 point

There’s a couple of ways I can see it:

  • highlights unclosed pairs
  • closing pairs shown as faded / gray text, kind of like some auto complete systems like copilot in vscode.
  • it could be some key bind you press, and it closes the next unclosed pair

The following is less preferred but still works: maybe the status line or a pop up shows the order of unclosed pairs.

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply
3 points

Ive been looking for an alternative auto-pair plugin, so I’ll check this out. Thanks

permalink
report
reply
2 points

Interesting idea… Thanks!

permalink
report
reply

Community stats

  • 174

    Monthly active users

  • 137

    Posts

  • 429

    Comments