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

Potential bug with escape characters / white space in file names #57

Open gowerc opened 11 months ago

gowerc commented 11 months ago

New user of the extension so apologies if I've configured it wrong or am not understanding how it works but it looks like there might be a bug with regards to how escape characters are matched.

In my particular case the file name has " " separators in the file name however the link to the file uses %20 instead. The extension is incorrectly asserting that the file thus has no links to it.

Orphaned link report showing that the file is being flagged as orphaned

image

Markdown file where the file is being linked to

image

Showing the proper file name in the explorer

image

gowerc commented 11 months ago

This could be related to the following issue that I found and posted on the obsidian forum: https://forum.obsidian.md/t/link-renaming-fails-if-latex-equations-are-not-on-separate-lines/69205

EDIT - Yer definitely seems related to that obsidian bug; fixing up all my files so that all my equations are on separate lines I no longer get any false positives. Is it in your ability at all to throw a warning / error if there are files that can't be processed properly as I fear this may lead people to accidentally deleting files that are being used