shenfan1974 downloadsSmart tools for efficiently folding markdown sections.
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.
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.
Smart Fold to assign customized shortcuts.The project requires Node.js >= 24.11.1. You can install dependencies and build it using:
npm install
npm run build