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

Files are not hidden on graph view #33

Closed johnsbuck closed 1 year ago

johnsbuck commented 1 year ago

Plugin Version

1.1.1

Obsidian Version

1.3.4

Affected Platforms

Windows

Expected Behaviour

When hiding a file or folder, I should not expect to see it or any subfolders in the graph view.

Actual Behaviour

The plugin does not affect the graph view at all.

Steps to Reproduce

  1. Hide a file/folder
  2. Open graph view
  3. Filter for file or folder path
    • path:folderpath
    • file:filename
  4. See it exist in graph view
Oliver-Akins commented 1 year ago

This is the intended behaviour. The plugin is not meant to, and doesn't attempt to, affect the graph view.

johnsbuck commented 1 year ago

@Oliver-Akins Is there a reason why this isn't planned? It seems odd to me to have a graph view with files & folders that are not visible. I would understand if you kept a hide in graph view option.

Oliver-Akins commented 1 year ago

The biggest reasoning, is because that isn't something that I think this plugin should be responsible for. (It already injects itself into some of the UI from Obsidian, and I'd prefer to minimize that impact)

The plugin is scoped to hide files from the file directory tab, not remove them from Obsidian's UI entirely (the plugin also doesn't do: search results, file list when linking to files, etc.).

I may change my mind on the scoping at some point, but for now graph view is considered out-of-scope.

johnsbuck commented 1 year ago

Ok, thank you for the comment.

Oliver-Akins commented 1 year ago

@johnsbuck - If you're still wanting this to happen, I just remembered about a huge part of why I didn't include that functionality in File Hider by default, there's that functionality in Obsidian already under the "Excluded Files" setting.

image