Michael Naumov17k downloadsEnhances the Excluded files setting bringing gitignore syntax.
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 — from a .obsidianignore file, your existing .gitignore, or Obsidian's own setting.
[!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.
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:
advanced-exclude-demo-vault.zip from the Releases. It unzips into a single advanced-exclude-demo-vault-<version> folder.demo-vault/ in this repository.gitignore syntax — a folder, an extension, a path, from a .obsidianignore file you can edit by hand. 01 Exclude a folder* ignores everything, folders must be re-included with !*/ before any !file rule can reach inside them. 02 Whitelist with negation.gitignore, Obsidian's own Excluded files setting, and how completely an ignored file disappears. Both extra sources are off by default, so a fresh install changes nothing until you turn one on. 03 Exclude mode and sourcesThe plugin is available in the official Community Plugins repository.
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:
Add plugin button once and wait a few seconds for the plugin to install.By default, debug messages for this plugin are hidden.
To show them, run the following command in the DevTools Console:
window.DEBUG.enable('advanced-exclude');
For more details, refer to the documentation.
All notable changes to this project will be documented in the CHANGELOG.
Contributions are welcome — see CONTRIBUTING to get set up.
See my other Obsidian resources.