I’ve now pushed the full release - version 1.9.0. This update:
Makes collapsible blocks collapsible in the editor as well as the webview
Makes headings collapsible in both the webview and editor, allow them to remember if they were left opened or closed
Changes the default color scheme for nested blocks
Changes the plugin name from ‘Collapsible blocks’ to ‘Collapsible Sections’, due to the addition of collapsible headings
Probably other things too but this update was so spread out I can’t even remember what’s new from the last stable release.
I would expect this to be the last major feature release for a while - but I’ll be around for bug fixes if needed, and there may be occasional refactoring updates depending on motivation.
I was hoping to get this out in August, but I’ll settle for 2025
Thanks again for this wonderful plugin, @ntczkjfg, day to day it makes Joplin so much more productive to use, and has become indispensable!
I don't know if this would be difficult, or even desirable to implement, but sometimes I find myself wishing a keyboard shortcut (or button) to collapse all (markdown) headings in a note with a single action.
The use case being for working on a very long notes with many headings.
By way of an example only, using the Code Mirror 6 Snippets plugin, where a user might easily have twenty or more snippets each with it's own heading, it makes it easier to work on if only the worked on heading is expanded. (Probably not a great example, as in that instance there is generally no need to revisit an entry and so all can be left in a collapsed state between adding new entries any way!)
I've come across other instances regularly where this would be useful, and avoid collapsing ten or twenty top level headings individually, to edit a particular section.
A nice to have feature, as of course each heading can already be collapsed individually
Greetings in any case, and feedback remains: it's a killer plugin as it is!
I don’t necessarily think this would be a hugely complex feature - but the devil’s usually in the details, and in my experience I tend to vastly underestimate how complex things end up being.
That said, how exactly did you envision this? Only headings, not blocks? All headings, or just top-level ones? As a toggle, which closes all headings if any are open, but opens all headings otherwise? Any particular preference for what the hypothetical keyboard shortcut should be?
I’m not particularly familiar with the Code Mirror 6 Snippets plugin, but I can see where this functionality would be useful even in my own notes, and I may go for it - but I may also decide to just let this one pass if, after I start it, I find it really does end up being vastly more complex and troublesome than it currently seems like it would be in my head.
Thinking on it, it would be very useful if it collapsed all top level headings (the collapsible blocks and secondary headers could be left alone as they wouldn't bring any great advantage and probably would hugely over complicate things unnecessarily)??
I don't think any kind of toggle would be required for it to be useful. If I collapse all first level headings, I'm "zooming in" to get an overview I suppose and can work away from there, and expand as required?
I've found that I've been using your plugin a lot to collapse multiple headings as a kind of navigation aid in long notes, instead of leaning as much as previously on the Outline Plugin (a TOC panel, a lovely plugin and it remains a good compliment to your own). Many of my notes now live in a mostly collapsed state; that has resulted over time by how I've been using your plugin, and it turns out to work very well here—for me, it considerably lessens the cognitive effort managing and utilising lots of information.
Regarding a keyboard shortcut: a button, shortcut, or either one, that's something a user could easily adapt to, given the reward of the convenience of the action! But as you ask, something with minus or zero? Alt-0 perhaps??
And as another note of feedback—I'm sure you will have some curiosity of how your plugin is being used—I continue to use the collapsible blocks, and it's not unusual here to have two or three at the top or near the top of notes in a collapsed state for key points, abstract, and the likes. That's probably where I most used them; but also liberally enough in the body of notes for collapsing tables, PDF views, code blocks, etc.
Since the last release it's proven solid and reliable and a wonderful tool.