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

Auto Collapse Inactive Folders

somehowitworkssomehowitworks39 downloads

Automatically collapse all folders except the one containing the active file.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

⚠️这个插件的代码是由Google Gemini协助生成的。如果你很难接受AI生成的程式,请谨慎下载。
⚠️The coding of this plugin is assisted by Google Gemini. If Ai programming upsets you, please think twice before installing it.

顾名思义,这个简单的插件可以帮你自动折叠文件列表中不在活跃状态的目录。
As the name suggests, this simple plugin auto collapses the folders you aren't currently working on.

auto-collapse-folders demo

如果你主要依赖文件列表浏览笔记,可能会想:“反复展开目录岂不是更累”? 但如果你有别的方式在笔记间切换,这个插件或许有助于更好地展示当前笔记的位置。
If you mostly rely on the file list to navigate, you might think:"isn't it more tedious to do all the expanding repeatly?"
However, in case that you got other ways to jump between notes, this plugin might help on showing the location of the current note.

97%
HealthExcellent
ReviewPassed
About
Collapse inactive folders to keep the file explorer focused on the current note. Keep the folder containing the active note expanded while folding all others for a cleaner, easier-to-navigate file list.
FoldersSidebarNavigation
Details
Current version
1.0.0
Last updated
2 months ago
Created
2 months ago
Updates
1 release
Downloads
39
Compatible with
Obsidian 1.0.0+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Author
somehowitworkssomehowitworks
GitHubsomehowitworks
  1. Community
  2. Plugins
  3. Folders
  4. Auto Collapse Inactive Folders

Related plugins

Portals

Pin folders and tags as customizable tabs with icons, colors, and folder notes for easier navigation.

Notebook Navigator

A better file browser and calendar inspired by Apple Notes, Bear, Evernote and Day One.

Recent Files

Display a list of recently opened files.

Flexplorer

Enhance the file explorer with custom sorting, pinning, and hiding.

TagFolder

Show tags as folder.

Custom File Explorer sorting

Manual or automatic config-driven reordering and sorting of files and folders in File Explorer.

Folder notes

Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.

Reveal Active File Button

Add a button to the top of the File Explorer, to reveal the active file.

File Explorer Note Count

See the number of notes in each folder within the file explorer.

File Tree Alternative

An alternative file tree view with separate folder and file panes.