Fold headings in document using the Outline core plugin

Use case or problem

When navigating through large files, the outline plugin is useful to be able to see an overview of the headings, and being able to expand or collapse the headings in the outline gives you an easy ability to focus on what you’re looking for. It would be useful if you could use the outline plugin to easily collapse or expand headings across the whole file easily from a side pane, allowing you to move up and down and focus on different headings with much greater ease and speed.

Proposed solution

Have a toggle button in the outline pane (where the current search, auto scroll, and collapse/expand all buttons are) to sync folding (collapsing and expanding) between the outline pane and the main editor. With the toggle turned off, the functionality would be the same as currently, but with the toggle turned on, clicking on the fold arrows to collapse or expand headings in the outline plugin would fold the actual headings in the markdown editor. Folding in the markdown editor (using either mouse clicks on the arrows or the commands via command palette or hotkey) would also change the outline pane to stay synced to the editor.

Current workaround (optional)

Just using the native fold heading feature manually. Not really a workaround to a problem though.

Related feature requests (optional)

Sync Heading folds in Edit/Preview and Outline when panes are linked this is in feature archive, so it should be an implemented feature. not sure if it is referring to a different feature than i am.

1 Like

How about folding headings that doesn’t have sub headings? Your feature request only deals with the assumption that headings must have sub headings. This makes the feature hard to understand for a person that uses Obsidian first time.

Yes please I need this too, please develop it! Thank you