-
Notifications
You must be signed in to change notification settings - Fork 7
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: Folding code and data #1269
Comments
Interesting idea, I especially like the let folding. The hiccup one is more difficult since it's hard to detect that a particular form is meant to be data, but this could possibly be triggered via metadata or something similar. |
👍 You could do the same for maps, For the hiccup one, tbh that's the main "issue" that brought me here, I have huge, "uninteresting", pile of nested vectors. wouldn't showing the first item be a nice "get started with folding" feature to have? |
Related - support for this IntelliJ feature would be nice: https://www.jetbrains.com/idea/help/folding-custom-regions-with-line-comments.html |
I'd also like folding on fold comments, here's a new link to the documentation: https://www.jetbrains.com/help/idea/2016.2/code-folding.html#supported_comments |
This would also be a major feature add for me. |
original comment:
|
Folding on data structures is a big plus for me, especially useful for editing large edn files with many nested maps, collapsing some would greatly be appreciated! :) |
I've fixed some of these cases for the next build, and broken the remaining cases (mostly around per-form customisation) out into #2042. What is fixed here:
Arbitrary data structures are not folded in Clojure code right now, since it's hard to distinguish them from syntax elements (e.g. |
Folding let and data would be handy, especially when working with html:
=>
And for large hiccup-like defs
=>
(the example is not correct but you get the idea).
The text was updated successfully, but these errors were encountered: