Search...Search plugins and themes...
⌘K
Sign in
  • Get started
  • Download
  • Pricing
  • Enterprise
  • Account
  • Obsidian
  • Overview
  • Sync
  • Publish
  • Canvas
  • Mobile
  • Web Clipper
  • CLI
  • Learn
  • Help
  • Developers
  • Changelog
  • About
  • Roadmap
  • Blog
  • Resources
  • System status
  • License overview
  • Terms of service
  • Privacy policy
  • Security
  • Community
  • Plugins
  • Themes
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

Fold Unfold Headings

leondgarseleondgarse42 downloads

Fold note content under headings to get an outline view, or show only headings up to a chosen level.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates2

Fold a note down to its headings, like the code editor shortcut "fold to level N" (for example Ctrl+K Ctrl+2 in Pulsar / Atom / VS Code).

Commands

Command Result
Fold all content to its own heading Every heading stays visible and the text under each heading is folded. The note reads like the Outline view.
Fold to heading level 1 … 5 Only headings of that level or higher stay visible. For example, level 2 shows # and ## headings and folds everything else.
Unfold all Removes every fold in the note, including the ones made by this plugin.

Each fold command first unfolds everything, so you can switch between levels directly.

Headings inside fenced code blocks and the frontmatter are ignored.

Hotkeys

The plugin sets no hotkeys. Assign them in Settings → Hotkeys by searching for "Fold", for example:

  • Ctrl+Alt+0: Fold all content to its own heading
  • Ctrl+Alt+1 … 5: Fold to heading level 1 … 5
  • Ctrl+Alt+U: Unfold all

Installation

Manual

  1. Download main.js and manifest.json from the latest release.
  2. Put them in <vault>/.obsidian/plugins/fold-unfold-headings/.
  3. Reload Obsidian and enable Fold Unfold Headings in Settings → Community plugins.

Releasing

  1. Bump version in manifest.json and add it to versions.json.
  2. Commit, then push a tag with the exact version, for example git tag 0.1.1 && git push origin main 0.1.1.

The release workflow creates the GitHub release and attaches artifact attestations for main.js and manifest.json.

License

MIT

HealthExcellent
ReviewPassed
About
Fold notes to headings to view an outline, keeping each heading visible while collapsing its content. Fold to levels 1–5 to show only headings at that level or higher; commands unfold first so you can switch levels instantly. Ignore headings inside fenced code blocks and frontmatter.
OutliningCommands
Details
Current version
0.2.0
Last updated
2 weeks ago
Created
2 weeks ago
Updates
2 releases
Downloads
42
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
leondgarseleondgarse
GitHubleondgarse
  1. Community
  2. Plugins
  3. Outlining
  4. Fold Unfold Headings

Related plugins

Quick Switcher++

Enhanced Quick Switcher, search open panels, and symbols.

Copilot

Run AI agents such as Claude Code, Codex, and OpenCode inside your vault. Turn your second brain into a smart assistant that gets knowledge work done.

Note Toolbar

Add customizable toolbars to your notes.

Find orphaned files and broken links

Find files that are not linked anywhere and would otherwise be lost in your vault. In other words: files with no backlinks.

Tab Switcher

Switch your tabs with Ctrl + Tab in recently used order like in a browser.

Commander

Customize your workspace by adding commands everywhere, create macros and supercharge your mobile toolbar.

Word-Smith

The Ultimate Writing Suite - Write. Organize. Export.

Sort and Permute lines

Sort and Permute lines in whole file or selection.

Lean Terminal

Embedded terminal panel powered by xterm.js and node-pty - no external windows.

Heading Shifter

Easily Shift and Change Markdown headings.