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

shenfan19shenfan1974 downloads

Smart tools for efficiently folding markdown sections.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

Smart Fold is a highly optimized and lightweight Obsidian plugin that provides advanced yet intuitive tools for efficiently folding Markdown sections. It gives you finer control over the built-in folding mechanism in Obsidian without taking over your content.

Features

Adaptive Fold/Unfold Shortcuts: You can add hotkeys to globally increase or decrease the headings' folding depth across the active document.

Specific Heading Level Toggles: Easily toggle specific heading levels from H1 to H6 individually. Hotkeys can be set for targeting specific levels directly.

Smart Fold: An intelligent command that specifically toggles folding for all headings that do not have any children (sub-headings). Excellent for cleanly summarizing documents where leaf-node contents get too long.

Auto-Fold on Open: Highly requested feature—configure the plugin to automatically apply a specific fold state whenever you open a new file. You can choose to automatically fold everything to H1, or apply the Smart Fold!

Ribbon Quick Icons: Provides quick, aesthetic custom SVG icons on the left Ribbon menu H1-H6, HS (Smart Fold), H+ (Increase Fold), and H- (Decrease Fold).

Unified Toggle Logic: Turning off a ribbon icon in the plugin's settings will automatically disable its corresponding command and hotkey. This keeps your command palette and hotkey list clean and focused only on the 9 core features you use.

Usage & Settings

  1. Enable the plugin under Community Plugins.
  2. Under Settings -> Smart Fold, you can choose which Ribbon Icons you want visible.
  3. You can set the Default Fold State on Open from the same panel.
  4. Go to Obsidian's native Settings -> Hotkeys and search for Smart Fold to assign customized shortcuts.

Development

The project requires Node.js >= 24.11.1. You can install dependencies and build it using:

npm install
npm run build

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.
82%
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.0
Last updated
3 months ago
Created
3 months ago
Updates
1 release
Downloads
74
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

Outliner

Work with your lists like in Workflowy or Roam Research.

Various Complements

Complete words similar to auto-completion in an IDE.

Emoji Toolbar

Quickly search for and insert emojis into your editor.

Code Editor Shortcuts

Add keyboard shortcuts (hotkeys) commonly found in code editors such as Visual Studio Code (VS Code) or Sublime Text.

Advanced Tables

Improved table navigation, formatting, and manipulation.

Importer

Import data from Notion, Evernote, Apple Notes, Microsoft OneNote, Google Keep, Bear, Roam, and HTML files.

Meta Bind

Make your notes interactive with inline input fields, metadata displays, and buttons.

Creases

Tools for effectively folding Markdown sections.

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.

Simplified Chinese Word Splitting

Adds Simplified Chinese word splitting support for the editor and Vim mode.