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

Hide Folders and Files

AnthirayasAnthirayas54 downloads

Hides and toggles configured folders and files in the file explorer.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates1

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).

Configuration

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:

  • an exact name: 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.

Toggling

  • Ribbon button: toggles folders and files together.
  • Commands: Toggle visibility of hidden folders, …hidden files, …hidden folders and files.

Exclusion list

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.

What changed from the original

  • New: hide files, with a separate list, toggle and exclusion-list option.
  • Names are matched in code instead of being put into CSS selectors, so quotes or brackets in a name no longer break hiding.
  • Un-hiding is complete: removing an entry or turning hiding off shows the item again without a reload, and disabling the plugin un-hides everything.
  • The settings toggle now updates the ribbon icon and status bar.
  • Exclusion-list entries are regex-escaped and anchored to path segments, and only entries this plugin added are removed.
  • Settings page uses the declarative settings API on Obsidian 1.13.0+, with a display() fallback for older versions.
  • Corrupt or hand-edited data.json values fall back to defaults.
  • Removed @ts-ignore, innerHTML and the external image; added strict lint and CI.

Known limits

  • Quick Explorer compatibility (experimental) covers folders only.
  • The plugin has not yet been tried in a real Obsidian; see CLAUDE.md for what has and has not been verified.

Development

  • 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).
  • Copy dist/main.js, manifest.json and styles.css to <vault>/.obsidian/plugins/hide-folders-and-files/.

Licence

MIT, see LICENSE.md. Original copyright remains with its author.

HealthExcellent
ReviewPassed
About
Hide configured folders and files in the file explorer using exact names or simple patterns (startsWith:, endsWith:) with optional case-insensitive matching. Toggle visibility instantly via a ribbon button or commands and maintain separate lists for folders and files. Add hidden items to Obsidian's exclusion list so they also disappear from search, graph and unlinked mentions, and unhide items immediately when entries are removed or the plugin is disabled.
FilesFoldersSidebar
Details
Current version
0.1.1
Last updated
Last week
Created
Last week
Updates
1 release
Downloads
54
Compatible with
Obsidian 1.0.0+
Platforms
Desktop, Mobile
License
MIT
Report bugRequest featureReport plugin
Author
AnthirayasAnthirayasjrayas
GitHubjrayas
  1. Community
  2. Plugins
  3. Files
  4. Hide Folders and Files

Related plugins

Flexplorer

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

Custom File Explorer sorting

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

File Tree Alternative

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

Notebook Navigator

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

Quick Explorer

Perform file explorer operations (and see your current file path) from the title bar, using the mouse or keyboard.

Recent Files

Display a list of recently opened files.

Reveal Active File Button

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

Hide Folders

Quickly toggle the visibility of specific folders in the file navigator based on configured names. Useful for hiding attachment folders.

Portals

A file browser that lets users add folders & tags as customizable tabs with icons, colors, and folder notes for easier navigation.

Multi Properties

Add properties to multiple notes at once. Either right-click a folder or select multiple notes and right-click the selection.