devxoul4 downloadsHide files matching .obsidianignore (gitignore syntax) from the Obsidian UI.
Hide files from Obsidian using a .obsidianignore file — just like .gitignore.
Create a .obsidianignore file in your vault root, list the files and folders you
want hidden using standard gitignore syntax, and they disappear from the file
explorer, Quick Switcher, search, graph, and backlinks.
The plugin reads .obsidianignore (gitignore syntax) and drives Obsidian's native
Settings → Files and links → Excluded files list (userIgnoreFilters). Because
this is the same mechanism Obsidian uses internally, hidden files are excluded
everywhere the native "Excluded files" setting applies:
Cmd/Ctrl+O)Your own manually-added Excluded-files entries are preserved — the plugin only
manages the entries it computes from .obsidianignore, and restores your manual
list when disabled.
Visit the Obsidian Community Plugins page and click Add to Obsidian, then enable the plugin.
main.js and manifest.json from the latest release.<vault>/.obsidian/plugins/ignore/.Enable the plugin.
Create a .obsidianignore file in your vault root.
Add patterns:
# Hide a whole folder
Archive/
# Hide all files with an extension
*.tmp
# Hide everything under a folder, but keep one file
build/*
!build/keep.md
# Nested globs
**/drafts/
Save. Matching files vanish. Edit the file anytime — changes apply automatically.
Standard gitignore semantics are supported (via the ignore
library):
# comments and blank lines*, ?, ** globs/ for directory-only matches/ for root-anchored matches! negation to re-include — note that, like git, you cannot re-include a file
whose parent directory is fully excluded. Use build/* instead of build/ if
you need to negate a child (!build/keep.md)..obsidianignore).bun install
bun run dev # watch + rebuild
bun run build # type-check + production bundle (main.js)
bun test # unit tests
bun run lint # oxlint
MIT