Vinzent03 / find-unlinked-files

Find files, which are nowhere linked, so they are maybe lost in your vault.
MIT License
293 stars 14 forks source link

option to scan the current file or a specific folder? #35

Open zeltak opened 1 year ago

zeltak commented 1 year ago

Hi and thank you for this fantastic plugin!

I wonder if its possible to add a feature request to add a command to scan the current file or a specific folder (as opposed to all vault?)

this would make managing specific missing files easier and safer (when you have hundreds of orphan files)

thx so much for you amazing work

Z

Vinzent03 commented 1 year ago

There a context menu action when right clicking a folder in the file view. In addition you should be able to customize the directory allow list in the settings.

zeltak commented 1 year ago

thanks so much for you kind response. I know one can right click a folder yet sometimes I have need to quick run it on a specific file/buffer.

I understand this maybe a niche case so understand if the FR is rejected :D

thanks for your consideration and all your amazing work on obsidian

Z

Vinzent03 commented 1 year ago

How should finding orphan files work on a single file?

zeltak commented 1 year ago

thx again!

well you would run the command and it would look at all the links (for images, pdfs etc) in the current file and if the file is missing it would inform/delete the link. Does that make sense?

for a working example I have file for lets say QNAP network documentation. I have 50 links to image examples. if 3 links are broken/orphans it will only delete the links in the QNAP file

thanks so much again

Z

Vinzent03 commented 1 year ago

Oh, you are talking about broken links and not about orphaned files. I'll think about it.