Opening a leo file via link from leo no longer works

25 views
Skip to first unread message

Josef

unread,
Oct 15, 2022, 7:46:30 AM10/15/22
to leo-editor
When a heading points to a leo file, or when a link points to a local leo file, I could open the leo file in a new tab by ctrl-clicking on the file, but this no longer works. It used to give a an error message in the past, but it worked. Now it gives no error message and does not work.

Opening any other file in the same manner, like PDF's or Excel files seems to work just fine.

- Josef

Thomas Passin

unread,
Oct 15, 2022, 8:07:17 AM10/15/22
to leo-editor
Please post an example of a link in the body, and one in a headline, that don't work.

Thomas Passin

unread,
Oct 15, 2022, 8:23:26 AM10/15/22
to leo-editor
I'm not sure if I remember, but the correct syntax for a UNL may have changed a little sometime in the last year or two.  Here's an example that works for me (it opens the outline in a new tab and goes to the specified location):

unl://c:/users/tom/.leo/utility.leo#Python-->Case insensitive Compare

You need exactly two slashes after the string "unl:".   I know that a correct file: URL requires three slashes, but the UNL code wants two for reasons I don't remember if I ever knew. I'm not aware of any recent changes in this behavior.

If this is the problem, it can probably be fixed with a global search-and-replace.  Otherwise, please post examples.
Reply all
Reply to author
Forward
0 new messages