kelszo / obsidian-file-explorer-plus

A plugin for https://obsidian.md, which enables the ability to hide and pin specific files and folders in the file explorer by applying custom filters.
GNU Affero General Public License v3.0
60 stars 3 forks source link

There is no setting option to hide files by name. #8

Closed DanShui-Yu closed 8 months ago

DanShui-Yu commented 9 months ago

What happened?

The introduction states "Flexibility in Filtering: Hide and pin files and folders using wildcard or regex filters for names, paths, and tags," but in fact, the settings only include tag filters and path filters.

image

What did you expect to happen?

I would like to have name filters that allow me to freely set specific extension types of files to automatically hide.

Can you reproduce the bug, if so how? As detailed but minimal as possible.

I'm a new user who is currently searching for a solution to meet the aforementioned requirement. When I downloaded from the plugin market, this is what I encountered.

Other?

No response

Plugin version

1.1.4

Obsidian version

1.5.8

OS

Windows

kelszo commented 9 months ago

This is already possible. The "Path Filter" includes the file name, i.e. if you set a filter to hide "*.pdf" (I recommend looking into the wildcard syntax), it will hide all PDF files. If you set a filter to "File To Hide", it will hide all notes that have the name "File To Hide", independent of what folder they are in.

Please close this issue if this works for you, or if you need further explanation don't hesitate to ask :)

DanShui-Yu commented 8 months ago

Thank you for your response. I tried to hide all .edtz files using *.edtz, but after setting it up, only the .edtz files in the root directory were hidden, and those in other folders were not.

image

kelszo commented 8 months ago

Sorry, I was unclear before. As per the wildcard syntax you will have to do this to hide edtz files in all directories: **/*.edtz.

** is meant for matching files in subdirectories.