Oliver-Akins / file-hider

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

Request - Hide files by extension #35

Open froses opened 1 year ago

froses commented 1 year ago

Hi,

First, thank you so much for your work.

I think it may be interesting to offer the possibility of hiding files by extension. For instance, all files with a "zip" or with an "edtz" extension ("edtz" file extension is used by Obsidian Edit History Plugin).

Thanks in advance,

Francesc Rosés

MatlabRes commented 1 year ago

Yes I'm too interested hide "edtz". It can be killer-feature.

Oliver-Akins commented 1 year ago

Thanks for the ideas, this is something I could look into adding, it's similar to #15, as the extension hiding functionality would essentially be equivalent to using .*\.edtz.

I'll keep this use-case in mind while developing RegEx support and test to see how it handles it.

MatlabRes commented 1 year ago

Thanks, I did it myself.

Screenshot_20230831_153221

file-hider.zip

@froses you can now try simple use my version, while wait off release

froses commented 1 year ago

Thanks a lot! I’ll try!

Francesc El 31 ago 2023, 14:39 +0200, MatlabRes @.***>, escribió:

Thanks, I did it myself. file-hider.zip @froses you can now try simple use my version, while wait off release — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.Message ID: @.***>

froses commented 1 year ago

Hi Oliver,

I have tested the plugin and I think the addition of the new functionality to hide files by extension is great. I will tell you, below, the tests I have done and the possible problems I have seen.

I am using in Obsidian 1.45 on macOS (Ventura and Sonoma).

⁃   I have a file in my vault with an unsupported extension: «Table.ods». The file is visible. 
⁃   I have installed the beta version of File Hider including the new feature to hide files by extension.
⁃   I opened the File Hider Settings Dialog and I specified the files with an ODS extension must be hidden.

 ⁃ I close the settings dialog. ⁃ The «Table.ods» file still visible. ⁃ I disabled and enabled the File Header plugin. ⁃ The «Table.ods» file is hidden. ⁃ I opened the File Hider Settings dialog and I clicked the «Manage» button. No hidden files appear, but «Table.ods» is hidden. ⁃ I copied a new file, «Table_02.ods» from Finder to Obsidian. The file «Table_02.ods» is visible. ⁃ I disabled and enabled the File Header plugin. ⁃ The «Table_02.ods» file is hidden.

Observations:

⁃   IMHO, if you specify an extension (or extensions) to hide, the files with these extensions must be hidden when the settings dialog is closed.
⁃   IMHO, if a file is hidden by extension, it must appear in the «Hidden Files and Folders» list.
⁃   IMHO, when I add a new file with an extension to hide, the file must be hidden automatically.

I hope, my test will be useful to you.

Best regards,

Francesc

El 31 ag. 2023, a les 14:39, MatlabRes @.***> va escriure:

Thanks, I did it myself.

https://user-images.githubusercontent.com/22655314/264646158-91c34a57-013f-4855-aab1-c99752db65e5.png file-hider.zip https://github.com/Oliver-Akins/file-hider/files/12486036/file-hider.zip @froses https://github.com/froses you can now try simple use my version, while wait off release

— Reply to this email directly, view it on GitHub https://github.com/Oliver-Akins/file-hider/issues/35#issuecomment-1700963765, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB6VTSPFWNPH7XH5TGIS5IDXYCAYVANCNFSM6AAAAAA4AONRG4. You are receiving this because you were mentioned.