Oliver-Akins / file-hider

A plugin for https://obsidian.md that allows hiding specific files and folders from the file explorer.
MIT License
60 stars 12 forks source link

Any chance to programmatically hide files? #37

Open notuntoward opened 8 months ago

notuntoward commented 8 months ago

Discussed in https://github.com/Oliver-Akins/file-hider/discussions/34

Originally posted by **mariomui** June 18, 2023 I'd love to hide all the files in my vault that begin with an underscore.

Similarly, I'd like to hide all my attachments folders -- I have one under each main folder.

"Google obsidian hide attachments" suggests that this would be a very popular feature.

Piano-WL commented 3 months ago

Seconded; this would work really well with Zoottelkeeper by Akos Balasko and I have a feeling that's what OP was hoping for.

With that being said, this would be tricky to implement since if you want to unhide one of your "_index" folders to work with it, for example, since the plugin would hide it again immediately upon closing the tab or whatever. You'd probably need to make it so that the switch to turn this feature on/off would unhide all the folders it's affecting when switched to off.

I'm gonna go off and see if I can do this in my test vault, but tbh I'm pretty new to github so even if I succeed, getting it out into the world might be a bit of an endeavor.