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
  • Join the community
  • Discord
  • Forum / 中文论坛
  • Merch store
  • Brand guidelines
Follow us
DiscordTwitterBlueskyThreadsMastodonYouTubeGitHub
© 2026 Obsidian

File Ignore

feng6611feng66113k downloads

Controls file indexing by managing dot prefixes on files/folders to truly hide/exclude them, providing a .gitignore-like experience.

Add to Obsidian
  • Overview
  • Scorecard
  • Updates9

An Obsidian plugin that controls file indexing by managing dot prefixes (hidden attributes) on files/folders, providing a .gitignore-like experience. obsidian-file-ignore.kkuk.dev

English | 简体中文

Motivation

  • I use Next.js to manage my blog, writing and publishing through Obsidian. However, /node_modules was a headache as Obsidian indexed everything, causing extremely slow startup.
  • Leveraging Obsidian's default behavior of not indexing "dot-prefixed hidden files", I developed this plugin to change indexing behavior by modifying file names.
  • Before using the plugin, opening the repository took about 10s; after using it, it opens almost instantly.

Related Scenarios

When your Obsidian vault contains numerous non-note files (like code repositories, attachments, caches):

  • 🐢 Slow Startup & Performance Bottlenecks: Obsidian tries to index all files (including node_modules, .git, large attachment folders), leading to long startup times, high RAM and CPU usage, and sluggish operations.
  • 🔍 Cluttered Workspace: Global search results get polluted by irrelevant content from node_modules, etc.; the graph view becomes crowded and hard to read due to numerous non-note files.
  • ⚙️ Limited Built-in Exclusion: Obsidian's built-in "Exclude files" option often fails to truly prevent performance hits from indexing and isn't convenient to configure.

Settings Page

🚀 Features

  • File Filtering: Specify files or folders to ignore based on rules.
  • Hide Files: Add a dot (.) prefix to matched files/folders, making them invisible to Obsidian.
  • Show Files: Remove the previously added dot prefix, restoring visibility.
  • .gitignore-Style Patterns: Use familiar patterns for configuration.
  • Index Control: Prevent Obsidian from indexing and processing irrelevant content.

⚙️ Usage

Matching Rules

Supports the following matching patterns:

  • Specific file: test.md
  • Root directory file: /readme.md
  • Entire folder: temp/
  • Wildcard matching: *test/ (e.g., /_build/, /cache*/)

Operations

After configuring rules in the plugin settings page, you can:

  • Click "Hide Files": Builds a rename plan, shows a preview, and then adds a "." prefix to matching files/folders.
  • Click "Show Files": Builds a rename plan, shows a preview, and then removes the "." prefix from matching files/folders.
  • If a batch is interrupted, use the Recovery action in settings to undo the already-completed part safely.

How to Configure?

Configure your ignore rules in Obsidian's Settings -> Community plugins -> File Ignore settings page.

🛠️ Installation

  1. Open Settings > Community plugins in Obsidian.
  2. Ensure Safe mode is off.
  3. Click Browse community plugins.
  4. Search for "File Ignore".
  5. Click Install.
  6. Once installed, click Enable.

🔍 Tips

Recommended to use with the Show-Hide-Files plugin for better management (viewing or manipulating) of files hidden by this plugin.

🔒 Safety Notes

  • Important: File Ignore works by renaming files and folders on disk. It is not a native Obsidian exclude API.
  • Hide/Show now builds a rename plan before execution and skips protected areas such as .obsidian/, .git/, and .trash/ automatically.
  • When the destination name already exists (for example, both foo.md and .foo.md are present), the plugin aborts the rename and emits an audit log instead of overwriting either file.
  • Nested children are skipped when their parent directory is already scheduled for renaming, which avoids double-processing the same subtree.
  • The latest batch is persisted so interrupted runs can be undone from the settings page.
  • Each rename records a [file-ignore][audit] line in the developer console, making it easy to trace which paths were changed if something looks wrong.

🧪 Debugging & Troubleshooting

  1. Open Settings → Community plugins → File Ignore.
  2. Enable Debug logging to stream detailed diagnostics.
  3. Use View → Toggle Developer Tools and inspect the Console tab; look for [file-ignore][audit] entries detailing hide/show batches, skipped items, and failures.
  4. Disable the toggle after finishing—normal operation stays quiet unless a warning or error occurs.

🤝 Support

If you encounter any issues or have suggestions for improvements, please visit our GitHub repository to create an issue.

You can also support me by buying me a coffee: Buy Me A Coffee

📄 License

This project is open-sourced under the MIT License - see the LICENSE file for details.

77%
HealthExcellent
ReviewCaution
About
Control file indexing by adding or removing dot prefixes on files and folders to prevent Obsidian from indexing them. Define .gitignore-style patterns to ignore or restore items so searches, graph view, and startup exclude irrelevant non-note files.
FilesFoldersSearch
Details
Current version
1.1.1
Last updated
2 months ago
Created
Last year
Updates
9 releases
Downloads
3k
Compatible with
Obsidian 0.15.0+
License
MIT
Report bugRequest featureReport plugin
Author
feng6611feng6611
github.com/feng6611
GitHubfeng6611
  1. Community
  2. Plugins
  3. Files
  4. File Ignore

Related plugins

Omnisearch

Intelligent search for your notes, PDFs, and OCR for images.

Custom File Explorer sorting

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

Home tab

A browser-like search tab for your local files.

Multi Properties

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

File Explorer Note Count

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

Manual Sorting

Drag'n'Drop sorting within file explorer.

File Tree Alternative

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

Quick Explorer

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

Trash Explorer

Restore and delete files from the Obsidian .trash folder.

File Explorer++

Hide and pin files and folders in the file explorer using custom filters.