Anthirayas54 downloadsHides and toggles configured folders and files in the file explorer.
An Obsidian plugin that hides configured folders and files in the file explorer, with a quick toggle to show them again.
Based on obsidian-hide-folders by JonasDoesThings (MIT). This version adds a separate list for files, a shared matching engine, and a set of fixes (see below).
The settings page has two separate sections, Folders and Files. Each has its own list (one entry per line), its own on/off toggle and its own "add to Obsidian exclusion list" option.
Each line can be:
attachments (folders) or secret.md (files, include the extension)startsWith::PREFIX: for example startsWith::_ hides everything whose name starts with _endsWith::SUFFIX: for example endsWith::.png hides every PNG"Ignore upper/lowercase" applies to both lists. Blank lines are ignored.
With the exclusion-list option on, hidden items are also added to Obsidian's Files and links → Excluded files, so they disappear from search, graph view and unlinked mentions. The plugin removes only the entries it added. Turn the option off before disabling the plugin if you want them removed.
display() fallback for older versions.data.json values fall back to defaults.@ts-ignore, innerHTML and the external image; added strict lint and CI.CLAUDE.md for what has and has not been verified.pnpm install, then pnpm dev (watch) or pnpm build (one-off, writes dist/).pnpm lint, pnpm lint:strict (CI, zero warnings), pnpm lint:scanner (community scanner approximation).dist/main.js, manifest.json and styles.css to <vault>/.obsidian/plugins/hide-folders-and-files/.MIT, see LICENSE.md. Original copyright remains with its author.