Shadow Tree
An Obsidian plugin that hides empty and irrelevant folders from the file explorer without deleting, moving or renaming anything.
Install from the Obsidian community store
Why this one
Open a folder of code repositories as a vault and the file explorer fills with node_modules, build output and folders that never held a note. Shadow Tree draws only what counts as content: a folder disappears when nothing of a relevant type (Markdown, Canvas and Base files by default) lies anywhere below it, or when a .gitignore-style pattern matches it. Notes inside a hidden folder do not count for its parents, so a repository whose only Markdown sits in node_modules vanishes as a whole. Per-folder pins override every rule, one ribbon click shows everything for the session, and the settings list what is hidden and why. An opt-in switch also writes pattern-hidden folders into Obsidian Sync's excluded folders and removes them again when they reappear.
Under the hood
The plugin never touches the file explorer's DOM. It computes the topmost hidden folders from the vault tree through the Obsidian API and installs a single constructable stylesheet with one rule per folder, keyed on its data-path attribute. If an Obsidian update changes the explorer's markup, the worst case is that folders reappear; nothing is lost. Detail in the repo.
Online repository
git.jkaindl.de/jkaindl/shadow-tree: code, releases, and the technical detail.
See also: obsidian