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

Smart Fold

shenfan19shenfan19253 downloads

Smart tools for efficiently folding markdown sections.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates3

Smart Fold is a plugin for Obsidian that turns a long Markdown note into a readable outline with one click.

HS folds every section that has no subheadings, so the paragraphs disappear and the outline stays. Click again to bring everything back.

Smart Fold folding every section that has no subheadings, then unfolding them again

H1, H2 and H3 fold all headings of one level at once.

Folding all H3 sections, then all H2 sections, then the H1 heading, and opening each again

H- and H+ fold and unfold one level at a time.

Folding one heading level at a time with H-, then opening them again with H+

Features

  • HS, Smart Fold: folds every heading that has no subheading under it, which are the sections holding the actual text. Parent headings stay open, folds you made by hand are kept, and a second click unfolds the same sections.
  • H1 to H6: each toggles all headings of that level. If the first one is folded, all of them unfold, otherwise all of them fold.
  • H- and H+: H- folds the deepest level that is still open, and H+ opens the shallowest folded level together with every level above it.
  • Fold on open: under Settings → Smart Fold → Default fold state on open, notes can open in Smart Fold or folded to a chosen heading level.
  • Native folding: Smart Fold uses the same folds as the arrows next to your headings. Nothing is written into your notes, and any single section opens again with its arrow.

Every action is a ribbon icon and a command, so you can click it or give it a hotkey under Settings → Hotkeys. HS and H1 to H3 are on by default. The other icons can be turned on under Settings → Smart Fold, and turning an icon off also removes its command and hotkey.

Smart Fold settings tab

Installation

Search for Smart Fold under Settings → Community plugins → Browse, then install and enable it. To install manually, copy main.js and manifest.json from the latest release into <your-vault>/.obsidian/plugins/smart-fold/.

Development

The project requires Node.js 24.11.1 or later. npm install and npm run build write main.js to the repository root. Releases are built and published by GitHub Actions from a version tag, and the steps are described at the top of .github/workflows/release.yml.

Credits

  • Inspiration: This plugin's core folding logic directly references and is inspired by the exceptional work done in obsidian-creases by Liam Cain. His project is licensed under the MIT License, and I retain the spirit of open-source sharing by also releasing this plugin under MIT.
  • AI Assistance: The development, refactoring, and refinement of this plugin were assisted by Antigravity, an advanced agentic AI coding assistant developed by Google Deepmind.
HealthExcellent
ReviewSatisfactory
About
Control Markdown heading folding with precise, lightweight tools. Toggle individual H1–H6 levels, apply Smart Fold to collapse leaf-node sections, increase or decrease global fold depth, auto-fold on file open, and add ribbon icons for quick access.
EditingMarkdownHotkeys
Details
Current version
0.1.2
Last updated
10 hours ago
Created
7 months ago
Updates
3 releases
Downloads
253
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
shenfan19shenfan19
github.com/shenfan19/
GitHubshenfan19
  1. Community
  2. Plugins
  3. Editing
  4. Smart Fold

Related plugins

Shortcuts extender

Use shortcuts for input special symbols without language switching.

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Heading Shifter

Easily Shift and Change Markdown headings.

Emoji Toolbar

Quickly search for and insert emojis into your editor.

Keyshots

Add classic hotkey/shortcuts commands from popular IDEs like Visual Studio Code or JetBrains Family.

Chord Sheets

Work with chord sheets (chords over lyrics or inline) in Live Preview and reading mode: Chord diagrams for guitar, ukulele, mandolin and piano, transpose, autoscroll, and more.

Easy Copy

Easily copy the text within inline code, bold text (and many other formats), or quickly generate an elegant link to a heading or block.

Linter

Format and style your notes. Linter can be used to format YAML tags, aliases, arrays, and metadata; footnotes; headings; spacing; math blocks; regular Markdown contents like list, italics, and bold styles; and more with the use of custom rule options.

LanguageTool Integration

Advanced grammar and spell checking, powered by LanguageTool.