Currently there is only a hotkey to fold/unfold ALL headings.
It would be nice to have a hotkey for each level.
So if I press the “Fold/unfold to level 3”, it will fold levels 3, 4, 5 and 6, but not 1 and 2.
Speaking of Onenote, I think Word’s Outline Mode could be an inspiration in the ability to only show or hide list items by indent level: Filter lists by indent level. Not sure how Obsidian might do this as it depends on styles. Perhaps a plugin could take advantage of headings under the hood to accomplish this, although I have nothing to base that on.
this is more for the style of bullets (to replace #)
but unfortunately all the folding functionality cannot be controlled by this snippet I made, and my skill level doesn’t allow me to attempt a plugin to add this functionality (not sure if it’s even possible)
This feature is the only thing I have to go out of Obsidian to use my notes. If folding evolves I think it would make Obsidian so much better.
I think it would be even enough (if possible) to use only one hotkey for folding and by using this hotkey multiple times it always folds one header-level more, starting with the smallest header in the note. So you press it once, H6 folds, you press it twice, H5 folds and so on.
A different hotkey would be assigned for unfolding the same way.
Obsidian is great, but with hundreds of notes (=nodes in my case) is overwhelming: without (un)folding I’m exposed to a lot of textual information, much more than 5-7 objects acceptable by human working memory
In mind-maps I can (un)fold a given node only one level down. In Obsidian it depends on the former heading/indent state, but “unfolding” unfolds all the levels down.
My suggested reference model in Mind Manager, similar to org-mode mentioned by @santi.
I think it may be nice to either have hotkeys or modifier clicks on the arrows to fold all levels beneath current, unfold all levels beneath current, fold all levels except those between current and its currently most unfolded sub-level, fold all except current, unfold all levels to the depth of current, etc…
I am sure there are some other good ones I don’t have here. Personally, I like modifier clicks on arrows. For example alt-click arrow may be good for fold all except this level. Ctrl-click arrow feels like unfold sub-levels could work. Some of the other more nuanced ones may benefit from hotkeys.
If this is already a topic, I apologize. I promise I did do a few searches. Thanks for everything.
the option to fold/unfold only the lists, a default setup for folding status every time I open a link (like always have unfolded H1 and H2 but the rest of headings and lists folded), and also the bug that when you have checklists folded but you check a checkbox from a different list, all checkboxes unfold.
Maybe a plugin that addresses this issue on the outline section could do, but it should also include the option of folding only lists (and checkboxes).
However, this thread is about being able to quickly fold and unfold to a certain level. It is also a thread where some people’s requests for additional types of hot keys as they relate to folding have been merged. See here: Fold/Unfold headings up to specific level hotkeys - #12 by I-d-as . I make this distinction to avoid this thread being closed with this newly implemented feature that you are requesting.
I hope this is not interpreted that I am expecting this to be closed or that I am annoyed my request was merged here. I am just making it clear. I think the moderators do an excellent job on this forum and very much appreciate them!
Found this feature request while searching to see if heading-level folding shortcuts had already been requested (e.g. CTRL+1, CTRL+2… CTRL+6) . However I see Santi has done an excellent job of recording the many features associated with folding: