Outline: Fold to specific heading level

I make rather large hierarchies of data in some of my documents, and while the outline is massively beneficial to navigating these documents, it requires a lot of manual collapsing or expanding once the outline reaches a certain length (say, about 1 page) to make it navigable.

This process could be sped up enormously if it supported a default depth so you could hide all of the child elements to make the higher categories easier to browser, much like Confluence’s Page Tree module (would link to documentation but URLs aren’t allowed on this forum). Even better would be +/- collapse buttons next to the standard expand/collapse that would dynamically show/hide each layer.

Another option would be to add a filter so you could simply define the headings you want shown in the outline.

I merged this into Fold/Unfold headings up to specific level hotkeys and then realized it wasn’t quite the same feature request (it’s asking for the same thing but in the body of the note, not the outline). Sorry for any confusion! When I extracted it back out I gave it a shorter title (was: “Improve Outline core plugin by adding custom tree depth expand/contract controls”).

Related request:

Thank you for correcting this, I was worried when I checked my notifications! Yes, this is indeed a distinct request from hotkeys for collapsing/expanding the headers within documents.

Hi ^^
You must try the plugin
obsidian-quiet-outline: Improving experience of outline in Obsidian it’s not perfect but it could help you with your issues, for me it has.

I hope, somehow in the future, it to be the default behavior/options for for Outline plugin.

Really miss that feature…


I would prefer an implementation in the form of…

Currently, Outline has three control buttons located above the Outline content itself: Show search filter, Auto-scroll to current section, and Collapse/Expand all.

I’d like to see six new buttons to the right of these, featuring Lucide icons for heading-1, heading-2, heading-3, heading-4, heading-5, and heading-6 (Icons – Lucide).
Clicking a button for a specific heading level would expand or collapse all Outline items to that heading level.

This way, you can quickly expand or collapse the outline to the desired heading level without having to click the + or − buttons multiple times (if I’ve correctly understood the implementation proposed by the thread’s author).

Yes, the interface will be a bit cluttered with new controls, but I find this more convenient.