Absolutely agree
+1 Almost a year has passed
Itâs a lot simpler to have a .obsignore hidden file in a top-level folder (and in any other folder) that specifies which files and folders thereon contained should be ignored. Inside there would be only relative paths to the .obsignoreâs folder.
This is exactly how Syncthing is handling it.
What I would add to Syncthingâs approach is operators that specify exactly how should a particular folder or file be ignored. For example, maybe I just want to hide the folder obsolete/irrelevant/ in Obsidianâs file explorer while keeping its content available for linking and searching. Say I also need to completely hide the folder downloads, no linking, no nothing inside Obsidian.
.obsignore would then contain these lines:
obsolete/irrelevant %invisible
downloads
Or something like this.
OP here
Almost a year later.
Needing this more and more as Iâand many others it seemsâuse Obsidian as part of broader âsystemsâ involving other apps. (The same driver behind the desire for supporting symlinks and composing Vaults with Folders from multiple sources.)
Hope we can get some more attention on this âIgnoreâ Configuration feature.
Whether this CSS approach is or isnât possible, it would only address the presentation layer of the file viewer. Having Obsidian actually ignore files/foldersâespecially with explicit âscopeâ directivesâmeans they would not be included in searches, graphs, auto-linking, etc⌠In other words, itâs not about just hiding them in the file explorer/UI, but keeping them out of processing too.
I just started using Obsidian daily and as I have a lot of symlinks to source material in my vault the quick switcher is extremely polluted.
Power users need this feature and I am sure its very easy to implement. Would implement it myself if Obsidian were open source.
For performance reasons this should absolutely be a core feature and not a plugin.
So this makes me think it needs to be a bit more powerful.
.Obsidianignore should to be able to ignore:
- by filesystem object types (âsymlinksâ, âfileâ, âdirectoryâ) (like
find -file
) - by full string match (e.g.:
ignoreme.txt
) - by wildcard match (e.g.:
*.txt
,* copy.*
) â good for file.ext based file type ignores - by regex pattern (e.g.: aw heck you knowâŚ)
And ignore directives should be declare-able for different contexts/scopes
- all
- search
- graph
- fileexplorer
- sync
- publish
Can be as simple and as powerful as the user needs.
I like this approach pretty much.
+1 I would love such a feature, too.
I think being able to ignore based on a string match that supports regex and basic wildcards would cover all the use cases @borisanthony describes in his last reply (^2 above):
# String: Ignores:
"_site" # directory and its contents (or maybe "_site/"?)
"ignoreme.txt" # every file with this exact filename
"*.txt" # all .txt files
"/^[0-9]{6,14}/" # any Zettelkasten-prefixed file
And then each context/scope could have a single line that lets you enter comma-separated quoted strings as matches:
- all:
"_site", "/^README/", "LICENSE", "CNAME"
- search:
"_pastedimagesfolder"
- graph:
"_templates"
etc.
Big +1 from me as well. I donât have the largest vault, but I already feel I need something like this for my templates and assets folder.
+1 please
Yes please. I only started using Obsidian a few days ago and itâs been able to do everything Iâve wanted it to so far except for this.
This would be so useful because the main thing I edit/write is work projects with node_modules which can have hundredths of files.
+1 â this would be great for those of us with v large mdnotes-generated notes. Right now my switcher and [[ suggestions make way too much noise.
I feel the same⌠Itâs the only thing that stops me from migrating all my notes to Obsidian.
I want this.
I want to link certain embedded files like Excel spreadsheets and source repos, but I also donât want Obsidian to spend so much time indexing them.
+1 for all the great reasons outlined above! (but especially for easy static site generation and the fun experiments it would enable)
Iâve found that Obsidian does ignore hidden files (dotfiles), which works as an okay workaround for me right now.
But Iâd love to see better support for this as well.
+1 Same thing (