Advanced Exclude

by mnaoumov
5
4
3
2
1
Score: 60/100

Description

The Advanced Exclude plugin extends the built in excluded files setting with gitignore style matching and a clearer way to hide parts of a vault. It can read rules from .obsidianignore, import patterns from .gitignore, reuse the native excluded files setting and optionally hide folders whose contents are fully excluded. That makes the file pane, backlinks and related views behave more like those files do not exist, which is much broader than a visual filter.

Reviews

No reviews yet.

Stats

73
stars
20,559
downloads
4
forks
153
days
4
days
5
days
1
total PRs
0
open PRs
1
closed PRs
0
merged PRs
13
total issues
0
open issues
13
closed issues
451
commits

Latest Version

6 days ago

Changelog

Exclude patterns now have two homes, shown as two sections of the settings tab:

  • Global patterns are kept in the plugin settings, so Obsidian Sync carries them to every device.
  • Local patterns are the .obsidianignore file at the vault root, for this device only. The section edits the file directly. Obsidian Sync never carries a dot file; git, Syncthing and other sync tools may.

Both always apply, global first, so a !negation in .obsidianignore can re-include on one device what a global pattern hides everywhere.

Upgrading from 4.2: nothing to do. Your .obsidianignore keeps working as it is, and now shows under Local patterns. Global patterns start empty. The copy of the file's text that 4.2 also kept in data.json is dropped on the first load, so nothing applies twice.

Every pattern box now checks its lines as you type: errors (a line that matches nothing) in red, warnings (a line that probably means something else) in amber. Nothing is blocked. An outside edit of .obsidianignore that brings an error, and a profile's @import file: of a missing file, each show a notice once.

A new Soft exclude mode leaves an ignored file in the Files pane and in links, and keeps it out of search, the quick switcher, link suggestions, graph, unlinked mentions and Bases, exactly where Obsidian's own Excluded files applies. Each of those features has its own toggle, so a folder can be left out of unlinked mentions only. In this mode, Exclude notes by property hides notes by a frontmatter value, such as visibility: gm-only.

  • fix: keep resolving links after hiding a note whose parse is in flight
  • feat: choose which features the Soft exclude mode reaches
  • feat: add a Soft exclude mode and an Exclude notes by property setting
  • feat: add a Report a bug command
  • refactor(storage): move verdicts and hidden paths to device-local records
  • fix: refresh graph views after index projection
  • fix: save .obsidianignore when typing pauses, and judge files by the applied patterns until Apply
  • feat: check exclude patterns as you type, and report errors an outside .obsidianignore edit brings
  • feat: keep per-device patterns in .obsidianignore beside the synced global patterns
  • feat: add global exclude patterns, kept in the synced plugin settings
  • fix: keep the space before the plugin name in the Publish warning's disable button
  • test(demo-vault): floor CodeScript Toolkit at 15.0.0

Full Changelog: https://github.com/mnaoumov/obsidian-advanced-exclude/compare/4.2.1...5.0.0

README file from

Github

Advanced Exclude

Buy Me a Coffee GitHub release GitHub downloads Coverage: 100%

Obsidian's Files and links > Excluded files setting does less than its name suggests: excluded files still sit in the Files pane, still turn up in Backlinks, still appear in search. They are de-emphasized, not excluded.

This plugin makes them behave as though they are not there, and lets you say which ones with gitignore syntax — the pattern language you already know — kept in two places: global patterns in the plugin settings, which Obsidian Sync carries to every device, and local patterns in a .obsidianignore file for this device only. Your existing .gitignore and Obsidian's own setting can feed it too.

[!WARNING]

The plugin makes Obsidian behave like the ignored files do not exist. This might affect features like Obsidian Sync, Obsidian Publish, etc.

Ensure you configured the plugin correctly to avoid data loss.

Demo vault

The documentation is a demo vault. Every feature has a note that explains what it does and why you would want it, with folders already in place to hide and un-hide.

Start reading here — it is plain markdown, so it works on GitHub with nothing installed.

A copy of the vault ships with every release. You can access it via any of the following:

  1. Running the Advanced Exclude: Open demo vault command.
  2. Downloading advanced-exclude-demo-vault.zip from the Releases. It unzips into a single advanced-exclude-demo-vault-<version> folder.
  3. Browsing its source in demo-vault/ in this repository.

What it does

  • Exclude with gitignore syntax — a folder, an extension, a path, in two settings text areas: global patterns that sync with your vault, and local patterns kept in .obsidianignore for one device. A line starting with # is a comment, as in .gitignore; write \# for a pattern that really starts with #. 01 Exclude a folder

  • Whitelist instead of blacklist, including the negation trap that catches most people: once * ignores everything, folders must be re-included with !*/ before any !file rule can reach inside them. 02 Whitelist with negation

  • Catch pattern mistakes as you type — every pattern box lists, under it, the lines that match nothing (an unclosed [, a lone \ at the end, a ./ path) in red, and the lines that probably mean something else (a \ between folders, a trailing space, a regular expression copied from Obsidian's Excluded files) in amber. Nothing is blocked: every line is still saved and applied. When .obsidianignore is edited outside Obsidian and gains an error, a notice names the line when you come back.

  • Choose where patterns come from and how hard they hide — your .gitignore, Obsidian's own Excluded files setting, and how completely an ignored file disappears: Full removes it from Obsidian's index, so even a 30,000-file folder is never indexed; Files pane hides it from the Files pane only; Soft leaves it out of search, the quick switcher, link suggestions, graph, unlinked mentions and Bases, exactly where Obsidian's own Excluded files applies, while it stays in the Files pane and in links. The extra sources are off by default, so a fresh install changes nothing until you turn one on. 03 Exclude mode and sources

  • Pick the features the Soft mode reaches — search, graph, unlinked mentions and the rest each have a toggle, so a folder can be left out of unlinked mentions only while search and graph still find it. 03 Exclude mode and sources

  • Exclude notes by property, in the Soft mode — visibility: gm-only keeps a game master's notes out of search and graph without moving them. 03 Exclude mode and sources

  • Hide folders left empty by exclusion, cascading up through parents whose whole subtree went away. Genuinely empty folders stay visible. 04 Settings

  • Switch between profiles — named sets of patterns and settings that compose with @import, so Focus can import Work and add its own lines, with !negation working across them as in one .gitignore. @import file:<vault path> pastes a vault file's patterns the same way, so @import file:.gitignore places the vault's .gitignore anywhere in a profile. The profiles sync with the vault; each device picks its own active one from the status bar. 05 Profiles

See also

My other Obsidian resources

Plugin Features How Advanced Exclude differs
Explorer Hider Explorer and bookmark hiding through CSS; context-menu selection Broader exclusion: index filtering rather than CSS alone
File Explorer++ Explorer hiding and pinning; wildcard and regex filters Broader exclusion: can remove files from the index; no pinning
File Hider Explorer context-menu hiding; visibility toggle command Broader exclusion: pattern-based index filtering
File Ignore Leading-dot renames; exclusion travels with the file Same exclusion goal; keeps file names unchanged
Hide Folders Explorer visibility toggle by folder name Broader exclusion: patterns across paths; index exclusion as well
Ignore .obsidianignore; native Excluded files list Same exclusion goal; removes files from the index too; synced patterns, profiles, validation
Ignore Filters Boost Explorer actions editing native Excluded files; exclude-all-except-one Broader exclusion: pattern rules rather than editing the native list
Shadow Tree Explorer-only filtering; folder pins; optional Sync exclusion Broader exclusion: can remove files from the index; no folder pinning
Sieve Scan-time exclusion; Syncthing-style first-match rules; vault display name Same exclusion goal; uses gitignore syntax; no vault renaming
Toggle Excluded Folders One-click toggle of native Excluded files Broader exclusion: maintained patterns and profiles; index filtering

Last searched for similar plugins on 2026-10-26.

Installation

The plugin is available in the official Community Plugins repository.

Beta versions

To install the latest beta release of this plugin (regardless if it is available in the official Community Plugins repository or not), follow these steps:

  1. Ensure you have the BRAT plugin installed and enabled.
  2. Click Install via BRAT.
  3. An Obsidian pop-up window should appear. In the window, click the Add plugin button once and wait a few seconds for the plugin to install.

Debugging

By default, debug messages for this plugin (id: advanced-exclude) are hidden.

If you need to enable them refer to the documentation.

Changelog

All notable changes to this project will be documented in the CHANGELOG.

Contributing

Contributions are welcome — see CONTRIBUTING to get set up.

Support

Filing an issue (for AI agents and humans)

Open issues through the issue forms, not as blank issues.

To report a bug from inside Obsidian, run the Advanced Exclude: Report a bug command. It opens the bug form with the plugin version, the Obsidian version and your operating system already filled in.

Filing from the CLI or the API (gh issue create --body, or an AI agent filing for you) skips the form, and gh issue create --template cannot load an issue form. In that case, open the matching form in .github/ISSUE_TEMPLATE/, copy every field as a ### <label> heading in the form's order, and fill in each one. Always state the plugin version, the Obsidian version and your operating system.

License

© Michael Naumov

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Auto Note Mover
5 years ago by faru
This is a plugin for Obsidian (https://obsidian.md).
Waypoint
5 years ago by Idrees Hassan
Obsidian plugin that gives you the power to generate dynamic MOCs in your folder notes. Enables folders to show up in the graph view and removes the need for messy tags!
Folder Focus Mode
4 years ago by grochowski
Focus file explorer on chosen folder and its files and subdirectories, while hiding all the other elements.
Hidden Folder
4 years ago by ptrsvltns
obsidian plugin for hidden folder
Create Note in Folder
4 years ago by Mara-Li
Set a folder in settings and get directly a command to create a note in it. Use this with QuickAdd/Button to get more pratical things :D
Advanced Merger
4 years ago by Anto Keinänen
Folder notes
4 years ago by Lost Paul
Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.
Auto Template Trigger
4 years ago by Numeroflip
An obsidian.md plugin, to automatically trigger a template on new file creation
Style Importer
3 years ago by Josh Rouwhorst
Obsidian.md plugin to import a stylesheet from a URL to the snippets folder.
Remove Empty Folders
3 years ago by fnya
Remove Empty Folders for Obsidian
Note Companion Folder
3 years ago by Chris Verbree
A Obsidian Plugin providing a way to associate a folder to a note
Folder Periodic Notes
2 years ago by Andrew Heekin
Auto Folder Collapse
2 years ago by Dario Casciato
A plugin for Obsidian that automatically collapses all child folders when you collapse a parent folder. This helps keep your file explorer organized and clutter-free.
Print
2 years ago by Marijn Bent
Print your notes directly from Obsidian
Folder Note
6 years ago by xpgo
Plugin to add description note to a folder for Obsidian.
Vault Changelog
6 years ago by Badr Bouslikhin
An Obsidian plugin to maintain a changelog of recently edited notes
Quick Explorer
5 years ago by PJ Eby
Perform file explorer operations (and see your current file path) from the Obsidian.md title bar
Symlink Creator
2 years ago by Tobias Heidler
A plugin for Obsidian that allows the creation of symlinks - for Windows, OS X and Linux only!
Fold Properties
2 years ago by James Alexandre
Adds Fold/Unfold Properties Function to Folder Context Menu
Hierarchical Backlinks
2 years ago by Jason Motylinski
Plugin which displays backlinks as a tree structure based on file paths
Folder Canvas
2 years ago by Nancy Lee
Generate a canvas view of your folder structure
Folder Links
2 years ago by Stefan Rausch
Obsidian Plugin that enables using links to folders.
create folder notes with dropdown
2 years ago by Sturdy Shawn
Simple Archiver
2 years ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Generate Timeline
2 years ago by Shanshuimei
An obsidian plugin to generate timelines from tags, folders, files or metadata automatically. 根据标签,文件夹,文件或者属性自动生成时间轴的插件。
Hide Index Files
2 years ago by d7sd6u
Hides folder notes from the file explorer
Crosslink Advanced
2 years ago by d7sd6u
Ftags commands toolkit
Folder Navigator
2 years ago by wenlzhang
An Obsidian plugin that allows you to quickly navigate to folders in your vault using fuzzy search.
Course Module Loader
a year ago by Sebastian Kamilli
Downloads and unzips course module zip files from a URL into a specified vault folder, skipping existing files.
File Explorer Reload
6 months ago by mnaoumov
Obsidian Plugin that reloads the file explorer files list
Hide Folders
5 months ago by jonasdoesthings
Toggle the visibility of folders in the Obsidian.MD file navigator based on name-patterns
Store
3 months ago by shimeoki
Manage your notes within a single folder.
ICOR for Life - Interface
2 months ago by Paperless Movement S.L.
The vault's chrome in one place: hide the ribbon and Obsidian's own controls, and give any folder a colour, an icon and a label. Writes no CSS; the INKLINE theme draws it. Part of the ICOR for Life suite.
Mapa neuronal
2 months ago by Felipe Córdova
A graph that explains itself: your Obsidian vault as a layered neural map, with the reason each note links to the next.
EzIndex
a month ago by Juehming Shi
fast index plugin for obsidian