jonasdoesthings35k downloadsQuickly toggle the visibility of specific folders in the file navigator based on configured names. Useful for hiding attachment folders.
A simple plugin for obsidian.md that hides configured folders, with the ability to toggle their visibility.
This can be used for hiding attachments folders when you don't need them.
Search in the community plugins menu of Obsidian for "Hide Folders" look for the right plugin ("by JonasDoesThings"), there you can install the latest stable version.

Enter the list of folder names to hide in the settings menu, one folder per line. You can match folders using three ways:
attachments)startsWith::_ to filter out all folders whose name starting with a _)endsWith::_trash to filter out all folders whose name is ending with _trash)
You can then also use a sidebar button to quickly toggle the visibility without having to enter the settings menu:

Using the command palette is also supported:

pnpm i to install dependenciespnpm dev to start compilation in watch mode.pnpm build to do a one-off build of the project, which produces the files needed for manually installing the plugin.main.js, manifest.json from the dist/ folder to your vault VaultFolder/.obsidian/plugins/obsidian-hide-folders/.I am maintaining free open source tools like this in my free-time.
If I helped you, and you want to give back, you can buy me a coffee (green tea).
MIT License, see LICENSE.md