Folder Expand Collapse
pendingby tyrannikal
Recursively expand or collapse all children within a specific folder via right-click or Alt+Click.
Folder Expand Collapse
An Obsidian plugin that adds recursive expand and collapse to individual folders in the file explorer.
Obsidian's built-in expand/collapse buttons operate on the entire vault. This plugin lets you target a specific folder — expand everything inside it without blowing up your whole navigation tree, or collapse it back down without resetting every other folder you had open.
Usage
Right-click
Right-click any folder in the file explorer to see two new menu items:
- Expand all children — recursively expands the folder and every subfolder inside it
- Collapse all children — recursively collapses the folder and everything inside it
Alt+Click
Hold Alt and click a folder to recursively expand or collapse it. The folder toggles normally, then all children follow.
Installation
From Community Plugins
- Open Settings → Community plugins → Browse
- Search for "Folder Expand Collapse"
- Click Install, then Enable
Manual
- Download
main.jsandmanifest.jsonfrom the latest release - Create a folder at
<vault>/.obsidian/plugins/folder-expand-collapse/ - Copy both files into that folder
- Reload Obsidian and enable the plugin in Settings → Community plugins
Building from source
git clone https://github.com/tyrannikal/obsidian-folder-expand-collapse.git
cd obsidian-folder-expand-collapse
npm install
npm run build
This produces main.js in the project root.
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.