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

Plugin hides only things from expanded folders when Obsidian loads #29

Open tprotopopescu opened 1 year ago

tprotopopescu commented 1 year ago

Plugin Version

1.1.1

Obsidian Version

1.1.9

Affected Platforms

Linux

Expected Behaviour

Hidden sub-folders of a collapsed folder should be hidden when the folder is expanded, if the folder was collapsed when Obsidian loaded.

Actual Behaviour

The plugin only hides things that would be visible when Obsidian loads.

For instance I use the plugin to hide some sub-folders of a folder. If the folder would be expanded when Obsidian opens the sub-folders are hidden. But if the folder is collapsed when Obsidian loads and I expand it after Obsidian loads the sub-folders that should be hidden are visible.

Steps to Reproduce

  1. Hide a sub-folder of a folder.
  2. Collapse the folder.[^*]
  3. Reload Obsidian
  4. Expand the folder - hidden sub-folder is visible.

Related to issue #21

[^*] If you skip this step and the folder is expanded when Obsidian reloads the sub-folder will be hidden.