Fold/Unfold headings up to specific level hotkeys

  • 1 for this feature, outliner plugin does this, but I found the verticle line length is pretty limited there. Hope this could be implemented!

Adding my +1 for a “unfold all levels” feature here. Creases is mentioned as a solution to this thread, but unfortunately it doesn’t support bulleted lists. I make use of folding bulleted lists liberally, and on especially long documents it’s a major pain to go through and click every single bullet point to expand it when I want to view the whole thing.

Given the existence of a “Fold all headings and lists” command, I’m very confused why there isn’t a corresponding “Unfold all headings and lists” command!

Adding +1 for this.
The core outline mode is very limited in MANY respects and should be overhauled and the list of suggestions already made for that core feature and very long and a good reference for development.

+1 for a proper step-by-step fold/unfold solution.

(Fold more/less hotkeys, but for the entire document. Without being in edit mode.)

Fold/Unfold all should also be one toggle hotkey, imo.

+1 from me!

+1 for –

hotkey: Cycle fold – 3 states

  1. First press Folds up to heading under cursor
  2. Unfold to show only direct sub-headings of heading under cursor
  3. Unfolds entire content below heading under cursor.

Cycle fold hotkey + Holding Shift

  1. Fold all headings in Document
  2. Unfold all top level headings to sub-level
  3. Unfold entire document

+2 for –

Hotkey - Iterative unfold (acts from heading immediately above cursor pos;

  • alt+shift L unfolds to next heading level, alt-shift h folds one level up from lowest open heading

+1

But tbh I don’t have much hope here. I love Obsidian but I’m disappointed with the focus and the progress on the Roadmap. The updates don’t seem to actually follow the preferences of people here in the forum. This might be the 5th feature- request I’m +1ing to in about 2 years. Non of them even got on the roadmap… :disappointed:

I understand how frustrating that can be (I have unfulfilled requests too, including ones I wrote myself), but 5 feature requests is a tiny percentage of the hundreds that have been posted in those 2 years.

I also vote for a OneNote style implementation.

This plugin is really helpful. But command “Fold headings by level” seems to be missing? (Command "Fold headings by level xx" not found · Issue #63 · liamcain/obsidian-creases · GitHub)

+1 for a “fold/unfold to level X header” command

+1

This would be a huge help for navigating larger notes. When I’m working on a detailed outline, being able to open or close sections up to a set level would make it so much easier to focus on what I need without all the extra scrolling. It’d add a nice level of control to note organization!

I also totally want this – for example, fold all H1, fold all H1+H2.

There is Fold more and Fold less in hotkeys, but these don’t work the way I expect. They seem to fold the current line only, which is not really useful. I was assuming they would fold everything in the doc, and more / less would be how deep to fold.

This is the kind of behaviour that I thought Fold more and Fold less would do.

I got excited and tried this, but it doesn’t correctly collapse headings, it seems to hide stuff near the heading, but it’s parsing the document wrong, I can’t collapse all with it at all.

So we need this to be a core feature, since core already understands the document structure correctly. The feature is relatively simple IMO, a “macro” to fold/unfold specific heading levels only. I would hope this could be implemented as a bindable key command.

Adding another +1 for this very old request. Two of the most frequently-suggested workarounds (Creases and the Fold All Headings) are not feasible substitutes for a native feature with associated key commands.

Creases

Although many people mention the (very capable!) Creases plugin, that plugin has been effectively abandoned since 2023.

I tend toward longer documents with 10 or more headings, and Creases frequently will “glitch” how Obsidian parses / renders a note. This glitch creates strange spans of visual blank space. Worse, it interferes with text editing: newly-typed text appears multiple times and text insertion or deletion often happens multiple lines away from where the cursor appears to be.

This glitched state persists until I restart Obsidian. This glitch has begun happening so frequently that I’ve sadly had to turn Creases off entirely.

Fold All Headings command

This only way that this “workaround” can “work” is if one ignores the fact that there should only be a single H1 heading in HTML documents. Although I imagine someone could argue that Markdown isn’t precisely the same as HTML, but since Markdown is effectively a subset of HTML, they are close enough that the same accessibility technologies, concerns, and best practices pertain to both.

I hope that Obsidian’s developers implement this and make it a customizable key command soon.