Plugin: Advanced Exclude

Advanced Exclude

  • Truly excludes existing files from the Files pane, Backlinks pane, etc
  • Brings gitignore syntax configuration
13 Likes

This is incredible. Thank you @mnaoumov !

1 Like

Heads up for users: you may want to “soft-exclude” some of your files, so start with the Obsidian “exclude include” setting off first:

The plugin makes the excluded items hard-excluded, meaning the files (complete folders) will be taken off of the Obsidian index and will be invisible for Obsidian. Which is what users of this plugin WILL want, but then they may need to reconfigure what they want soft- and hard-excluded.

I soft-excluded some images from some folders and some Templater folders before and I think it’s better to turn that setting off and add your own values in the box on the top.

Otherwise very good idea, especially for people who organize complete Windows drives within Obsidian. They may not want all stuff shown in Obsidian at all.

Note:
By “soft-exclude” I mean that I can still link to files and see them among the QuickSwitcher results, but down on the bottom. I don’t want them completely invisible.

1 Like

In version 1.0.1 the Ignore Excluded Files setting is turned off by default.

4 Likes

I am unable to find it in Obsidian Community Plugins.

According to https://github.com/mnaoumov/obsidian-advanced-exclude?tab=readme-ov-file#installation

The plugin is not available in the official Community Plugins repository yet.

The Obsidian team decided to not accept this plugin to the repository.

1 Like

Thanks for the quick reply!

I cloned this repository directly into .obsidian/plugins/ folder (on Windows). I restarted the Obsidian. I could see the ‘Advanced Exlcude’ under ‘Community Plugin’ section. But when I try to enable it, I am getting the error “Failed to load plugin “advanced-exclude””.

That’s not the correct way to install. Read plugin’s README

1 Like

It worked! This is an amazing plugin. With this plugin, I can keep the media files together with the notes under the right category folder, but without cluttering my Obsidian explorer view. Thank you so much!

1 Like

I thought this was what I was looking for, but it seems it goes too far for what I need.

I have files I want to exclude from certain functions, but not others, and Obsidian exclusion is not granular at all.

For example, I want my todo list files to exclude from backlinks (linked and unlinked) because there’s so many and they clutter the view. But I still want to be able to search through them, quick switch to them, etc.

It looks like this plugin is a wholesale ignore, though, and would even interfere with Sync etc. I still want my files, just limiting their scope. No idea if that’s possible, though.