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

Feature Request: brace-fold plugin should also fold parenthesis #6868

Closed
LeifAndersen opened this issue Jan 17, 2022 · 1 comment
Closed

Comments

@LeifAndersen
Copy link

Right now the brace fold plugin folds both braces and brackets. Some languages also use large parenthesized blocks, and it would be nice to be able to fold them. As with this website:

https://visr.pl
Screenshot from 2022-01-09 23-30-04

Currently I have a patch that does this, but i would make sense to have this be a default feature for the brace-fold plugin.

https://github.com/LeifAndersen/interactive-syntax-clojure/blob/main/patches/codemirror%2B5.63.3.patch

@marijnh
Copy link
Member

marijnh commented Jan 18, 2022

Attached patch should do this without making backwards-incompatible changes to the existing "brace" helper.

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