Hello,
I was looking for a way to fix the following issue:
What I’m trying to do
I am trying to hide my Attachments Folders from my Obsidian Vault. I have multiple Folder with each folder having an attachment Folder: “Pictures”.
I searched on the forum and found this:
The ability to hide the folder with attachments - Feature archive - Obsidian Forum
But, this only seems to hide the “Pictures Folder” in the main Vault. It is still there in the rest of the folders. Here is a picture of my file pane with it applied.
[image]
Any help would be greatl…
Turns out it is possible to select an attribute if it contains some text by using the ‘*=’ trick.
div[data-path*='assets'], div[data-path*='assets'] + div.nav-folder-children
{
display: none;
}
That will hide any folder or sub-folder named ‘assets’.
You can also mimic dot-files behavior by using [data-path*='/_']
and all files beginning with _
instead of a dot will be hidden (won’t work in the root dir though because of the missing /
).
3 Likes
Nice. I have some “maintenance” folders, and now I can Hide them.
this useful
Now I can hide some folders and reduce distraction due to the large number of folders