I would like a toggle button at the top of file explorer that would “show” or “hide” filetypes.
There would be a settings option that would include something like the following:
When in “hide” mode, hide the following:
all image types; or
jpg
png
etc…
all non-md filetypes; or
pdfs
txt
zip
etc
Extra option
Do not hide files created ____ (where the choice could be “today” or “in the last x hours”). This is so that we have time to rename imported images or attachments without having to toggle on and off before doing so.
It would be brilliant if it could also include other files by tag or by folder name. Example:
When in “hide mode”, hide the following:
files with tag x (#archive for example); and/or
folders that start with “Archive” (or that contain “Archive”, that sort of thing.
tb87, I like to keep all my files together so I don’t use assets or other folders to ‘hide’ my attachments. (I’m real big on ensuring I can see everything in Windows explorer; all related files begin with the same name so if I move something I know all the files to move with it).
I suppose I could use the second part of your code, but the idea of going into settings, appearance, and enabling/disabling the snippet multiple times/day would try what little patience I have.
Good work-around for those who don’t need to keep changing the setting though.
I have a lot of different file types in my vault that I want hidden. To include everything except.md, files, I use this CSS snippet. If you want to add extra files, add another selector like: :not([data-path$='.png']).