micro icon indicating copy to clipboard operation
micro copied to clipboard

options: Add `bracepairs` to control the start and end character of the pairs

Open JoeKar opened this issue 2 years ago • 5 comments

This helps in e.g. HTMLs and CPPs (templates), but can create some unexpected underlines in case of shift operations in e.g. C(PP)s. Maybe a better option is to make them configurable. What do you think about?

JoeKar avatar Jul 08 '23 13:07 JoeKar

Yes it should probably be configurable based on language. For languages where < and > are used as both comparison operators and template parameters (C++, Rust) maybe we should err on the side of not enabling it? Do you know what other editors like VS Code do in this situation?

zyedidia avatar Jul 08 '23 21:07 zyedidia

Yes it should probably be configurable based on language.

I will give it a try.

For languages where < and > are used as both comparison operators and template parameters (C++, Rust) maybe we should err on the side of not enabling it?

Sounds a bit more complicated and maybe something in the future in case the configurable brace pairs are available.

Do you know what other editors like VS Code do in this situation?

Since VSCode is language driven by default it has his config available per language.

JoeKar avatar Jul 18 '23 20:07 JoeKar

Do you know what other editors like VS Code do in this situation?

Since VSCode is language driven by default it has his config available per language.

Did you meant it uses LSP?

dustdfg avatar May 02 '24 11:05 dustdfg

No, I was referring to the Language Configuration Guide. So VSCode or more precisely his configuration can define all that stuff per language.

JoeKar avatar May 02 '24 16:05 JoeKar

No, I was referring to the Language Configuration Guide. So VSCode or more precisely his configuration can define all that stuff per language.

Looks like a good thing for micro!

dustdfg avatar May 02 '24 17:05 dustdfg