Advanced Exclude

by mnaoumov
5
4
3
2
1
Score: 38/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

stars
14,543
downloads
0
forks
61
days
NaN
days
NaN
days
0
total PRs
0
open PRs
0
closed PRs
0
merged PRs
0
total issues
0
open issues
0
closed issues
0
commits

Latest Version

Invalid date

Changelog

README file from

Github

Advanced Exclude

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

This is a plugin for Obsidian that enhances the Excluded files setting bringing gitignore syntax.

Obsidian has Files and links > Excluded files setting, but it is not as useful, because the excluded files are still present in the Files pane, appear in Backlinks pane, etc.

The plugin adds the following features:

  • Configure ignore patterns using gitignore syntax.
  • .obsidianignore file for manual editing.
  • Support ignore patterns from .gitignore file.
  • Reuse existing Files and links > Excluded files setting in string/regexp format.
  • Optionally hide folders left empty by exclusion via the Hide empty folders setting. When every file inside a folder is excluded, the folder is hidden too, cascading up through parent folders whose whole subtree became empty. Genuinely empty folders (with no files at all) stay visible.

[!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

A demo vault with usage examples 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-<version>.zip (<version> is the release version) from the Releases.
  3. Browsing its source in demo-vault/ in this repository.

Pattern examples

Patterns use gitignore syntax. A few common recipes:

Ignore a folder and everything under it:

Archive/

Ignore all files with a given extension, anywhere in the vault:

*.png

Ignore everything except a few file types (a whitelist). This is the idiom most people get wrong: once * ignores everything, you must re-include directories with !*/ before a negated file rule can match inside them — otherwise the files stay ignored because their parent folder is still excluded:

# Ignore everything...
*
# ...but keep folders traversable so the rules below can reach into them...
!*/
# ...and re-include these file types.
!*.md
!*.canvas
!*.base

Whitelist specific folders instead of file types:

*
!Journal/
!Journal/**
!Templates/
!Templates/**

[!NOTE]

The !*/ (or !Folder/) line is required by gitignore itself: "It is not possible to re-include a file if a parent directory of that file is excluded." Re-including the directory is what lets the later !... file rules take effect.

See the official gitignore pattern format for the full syntax.

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 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.

Support

My other Obsidian resources

See my other Obsidian resources.

License

© Michael Naumov

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Folder notes
3 years ago by Lost Paul
Create notes within folders that can be accessed without collapsing the folder, similar to the functionality offered in Notion.
Quick Explorer
5 years ago by PJ Eby
Perform file explorer operations (and see your current file path) from the Obsidian.md title bar
Folder Note
6 years ago by xpgo
Plugin to add description note to a folder for Obsidian.
Waypoint
4 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!
Auto Note Mover
4 years ago by faru
This is a plugin for Obsidian (https://obsidian.md).
Hide Folders
2 months ago by jonasdoesthings
Quickly toggle the visibility of specific folders in the file navigator based on configured names. Useful for hiding attachment folders.
Auto Template Trigger
3 years ago by Numeroflip
An obsidian.md plugin, to automatically trigger a template on new file creation
Print
2 years ago by Marijn Bent
Print your notes directly from Obsidian
Advanced Merger
3 years ago by Anto Keinänen
Vault Changelog
5 years ago by Badr Bouslikhin
An Obsidian plugin to maintain a changelog of recently edited notes
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.
Create Note in Folder
3 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
Hidden Folder
4 years ago by ptrsvltns
obsidian plugin for hidden folder
Folder Links
2 years ago by Stefan Rausch
Obsidian Plugin that enables using links to folders.
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.
File Explorer Reload
3 months ago by mnaoumov
This plugin has not been manually reviewed by Obsidian staff. Reloads file explorer pane
Fold Properties
2 years ago by James Alexandre
Adds Fold/Unfold Properties Function to Folder Context Menu
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
Generate Timeline
a year ago by Shanshuimei
An obsidian plugin to generate timelines from tags, folders, files or metadata automatically. 根据标签,文件夹,文件或者属性自动生成时间轴的插件。
Folder Canvas
2 years ago by Nancy Lee
Generate a canvas view of your folder structure
Folder Navigator
a year ago by wenlzhang
An Obsidian plugin that allows you to quickly navigate to folders in your vault using fuzzy search.
Hierarchical Backlinks
2 years ago by Jason Motylinski
Plugin which displays backlinks as a tree structure based on file paths
Folder Periodic Notes
2 years ago by Andrew Heekin
Note Companion Folder
2 years ago by Chris Verbree
A Obsidian Plugin providing a way to associate a folder to a note
Simple Archiver
a year ago by Mike Farr
An Obsidian plugin that enables you to quickly archive a single note or an entire folder of notes.
Hide Index Files
a year ago by d7sd6u
Hides folder notes from the file explorer
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!
Crosslink Advanced
a year ago by d7sd6u
Ftags commands toolkit
create folder notes with dropdown
2 years ago by Sturdy Shawn
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.
Store
9 days ago by shimeoki
Manage your notes within a single store. - This plugin has not been manually reviewed by Obsidian staff.