zk icon indicating copy to clipboard operation
zk copied to clipboard

Broken file based url

Open skbolton opened this issue 3 years ago • 2 comments

I am getting this diagnostic error from zk lsp in my notes for links to files. Here is an example of a link causing the issue.

[sample](file:///home/skbolton/Documents/Notes/sample.pdf)

If I use my terminal's functionality to go to the link under the cursor it opens the file just fine. If I change the format to:

[sample](file://home/skbolton/Documents/Notes/sample.pdf) zk no longer complains about it not finding the file but my terminal will no longer open the file.

From what I gather the file:/// is the proper syntax for a file link on the current host and so it would be nice to have that working if possible so that I don't get an error in zk and my terminal properly visits the link.

I am temporarily getting around this by doing the link as [sample](file://localhost/home/skbolton/Documents/Notes/sample.pdf) which is working for both systems (its just verbose).

skbolton avatar Aug 25 '22 02:08 skbolton

Agreed, this kind of hrefs should be ignored by zk.

mickael-menu avatar Sep 04 '22 12:09 mickael-menu

Confirmed this is still happening, could potentially be looked at together with #194

tjex avatar Jan 11 '24 20:01 tjex