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

Fixed files not hiding on obsidian initial load #27

Closed KosmosisDire closed 1 year ago

KosmosisDire commented 1 year ago

@Oliver-Akins Hey, I fixed the issue presented in #21. This uses setTimeout() to delay the hiding until the file explorer is loaded. A delay of 0 milliseconds works to fix it. However, just to be safe I set the delay to 200ms just in case it is different on other systems.

I made sure to follow the style guidlines, however let me know if there needs to be changes.

Tested on Windows 11.

Thanks for the plugin, it is really great!

Oliver-Akins commented 1 year ago

Awesome, thanks for the contribution, I'll get this merged and publish a release since it's a pretty straightforward change and it seems to at least do the hiding on load.