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

File Ignore

chenfengchenfeng4k 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
  • Updates10

An Obsidian plugin that controls indexing by adding or removing dot prefixes on files and folders, providing a pattern-based ignore workflow for large vaults.

English | 简体中文 · Website

File Ignore renames files and folders on disk. Review the rename preview before applying changes.

Motivation

I built File Ignore while using Obsidian to write in a Next.js blog repository. Indexing its /node_modules directory made the vault slow to open.

Because Obsidian skips dot-prefixed hidden files and folders during indexing, File Ignore lets you toggle dot prefixes on matching paths to exclude them from indexing while keeping them on disk.

Common vault issues

When your vault contains code repositories, build artifacts, or large non-note directories:

  • Slow startup and indexing: Obsidian attempts to index every file, resulting in slow launch times and high resource usage.
  • Cluttered search and graph: Results in global search and nodes in graph view become overwhelmed with dependency files and build caches.
  • Built-in exclusion limits: Obsidian's native "Excluded files" setting does not always prevent indexing overhead for massive folder trees.

Settings Page

Features

  • Rule-based filtering: Define path patterns to identify files and folders to ignore.
  • Hide files: Adds a leading dot (.) to matching paths, hiding them from Obsidian's index.
  • Show files: Removes the leading dot prefix, restoring visibility in Obsidian.
  • Batch preview and plan: Generates a rename plan and displays a preview before renaming paths on disk.
  • Safety checks and recovery: Skips protected folders, aborts on name collisions, and includes a recovery action to undo interrupted batches.

Usage

Matching Rules

File Ignore supports basic path-matching patterns:

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

Note: Patterns are simple path rules, not full .gitignore specifications.

Operations

After configuring rules in the plugin settings:

  1. Click "Hide Files": Builds a rename plan, displays a preview, and adds a . prefix to matching files and folders.
  2. Click "Show Files": Builds a rename plan, displays a preview, and removes the . prefix from matching files and folders.
  3. If a batch is interrupted, click Recovery in settings to safely revert already-renamed files.

Configuration

Open Obsidian and navigate to Settings → Community plugins → File Ignore to configure ignore rules.

Installation

  1. Open Settings → Community plugins in Obsidian.
  2. Turn Restricted mode off if prompted.
  3. Click Browse.
  4. Search for File Ignore.
  5. Click Install, then click Enable.

Tips

Pair File Ignore with the Show-Hide-Files plugin if you need to view or manage dot-prefixed files directly inside Obsidian's file explorer.

Safety and Limitations

  • Disk renaming: File Ignore renames items on your filesystem. It is not an Obsidian internal filter or virtual exclude API.
  • Protected directories: The plugin automatically skips critical directories, including .obsidian/, .git/, and .trash/.
  • Collision avoidance: If a destination path already exists (for example, if both foo.md and .foo.md exist), the rename aborts and writes an audit log instead of overwriting existing data.
  • Hierarchy handling: When a parent folder is scheduled for renaming, its child items are skipped to avoid redundant operations.
  • Undo and recovery: The latest batch operation is saved to disk so interrupted operations can be rolled back from the settings page.
  • Audit trail: Every rename records a [file-ignore][audit] entry in the developer console.

Debugging and Troubleshooting

  1. Open Settings → Community plugins → File Ignore.
  2. Turn on Debug logging.
  3. Open the developer console via View → Toggle Developer Tools and select the Console tab.
  4. Review [file-ignore][audit] entries for batch details, skipped paths, and errors.
  5. Turn off Debug logging when finished.

Support

If you encounter issues or have suggestions, please open an issue on the GitHub repository.

Built by chenfeng. Alongside Obsidian plugins, I develop focused Mac utilities, including Command Reopen, which restores minimized windows on Cmd+Tab.

You can also support development on Buy Me A Coffee.

License

This project is licensed under the MIT License. See the LICENSE file for details.

HealthExcellent
ReviewSatisfactory
About
Control file indexing by adding or removing leading dot prefixes on files and folders to hide or restore them from Obsidian's index. Define .gitignore-style patterns for files, folders, and wildcards to keep searches, graph view, and startup free of irrelevant non-note files.
FilesFolders
Details
Current version
1.1.4
Last updated
3 weeks ago
Created
2 years ago
Updates
10 releases
Downloads
4k
Compatible with
Obsidian 1.8.7+
Platforms
Desktop only
License
MIT
Report bugRequest featureReport plugin
Sponsor
Buy Me a Coffee
Author
chenfengchenfeng
kkuk.dev
GitHubfeng6611
GitHubfeng6611
Xchen31641727
  1. Community
  2. Plugins
  3. Files
  4. File Ignore

Related plugins

Quick Explorer

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

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.

Multi Properties

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

File Tree Alternative

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

GridExplorer

Browse and organize note files visually in a flexible grid layout.

Advanced Note Mover

Quickly and easily move notes to a predefined folder. Perfect for organizing your notes.

Neighbouring Files

Navigate to the next and previous file in the current directory.

Create Note in Folder

Add commands to create a note in a specific folder.

File Cleaner Redux

Helps with cleaning up empty files and unused attachments in the vault.