Auto Folder Collapse

approved

by Dario Casciato

Automatically collapses subfolders when a parent folder is collapsed

16 stars5,691 downloadsUpdated 3mo agoMIT
View on GitHub

Auto Folder Collapse

A plugin for Obsidian that automatically collapses all child folders when you collapse a parent folder. This helps keep your file explorer organized and clutter-free.

Installation

Downloading from the Obsidian.md Community Plugin Browser

  1. Open Obsidian and go to Settings.
  2. Navigate to the Community plugins section.
  3. Click on Browse and search for Auto Folder Collapse.
  4. Click Install and then Enable.

Downloading from the GitHub Repository

  1. Download the plugin files from the GitHub repository.
  2. Copy the Plugin Folder to your Obsidian vault's plugins folder: <vault>/.obsidian/plugins/.
  3. Enable the plugin in Obsidian:
    • Open Obsidian and go to Settings.
    • Navigate to the Community plugins section.
    • Refresh the Community Plugin list.
    • Enable the new Plugin.

Demo

Usage

Once the plugin is enabled, it will automatically collapse all child folders when you collapse a parent folder. You don't need to do anything else!

The plugin offers two independent features, each controlled by a toggle in Settings → Auto Folder Collapse.

FeatureDefaultWhat it does
Auto-collapse children on parent collapseOffWhen you collapse a folder, every sub-folder inside it is collapsed too (original behaviour).
Exclusive accordionOffWhen you expand a folder, all other folders that are not its ancestors or descendants are automatically collapsed. This keeps the sidebar focused on the area you’re working in.

Enable or disable either feature at any time; the change takes effect immediately.

Troubleshooting

If you encounter any issues with the plugin, try the following steps:

  1. Ensure you are using the minimum required version of Obsidian (0.12.0).
  2. Disable and re-enable the plugin in the Obsidian settings.
  3. Restart Obsidian.

If the problem persists, please report it on the GitHub Issues page.

Author

Developed by Dario Casciato.

Buy me a espresso

License

This plugin is licensed under the MIT License.

For plugin developers

Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.