On Saturday, December 9, 2023 at 11:57:09 PM UTC-5 lewis wrote:

I set myLeoSettings file to:
@string unl-status-kind = legacy

I then created a *new* leo file and created a new node: Test UNLs for 
Thomas - legacy 

You are correct the new version UNLs don't have the full path to the file:
unl://Test_UNLs.leo#Test UNLs for Thomas - legacy

Ctrl-click on a node with that new version UNL does not open the file. Nor 
does it move to file if already open


Exactly.  My patch fixes the problems in so far as it can given that the 
UNLs don't include the absolute path any more. The heuristic it uses is

    Look for locations in the following places in order:
        1. The currently selected outline
        2. All open outlines
        3. Files specified in an @data setting named 'unl-path-prefixes'
        4. Certain well-known files like PyLeoRef.leo
        5. The outlines listed in the Recent Files menu.
 
#3 is a new setting that Edward introduced when he made the recent changes 
to the UNL machinery.  I think (or maybe just hope) that #5 will catch most 
cases of interest, but it's not a perfect solution.

-- 
You received this message because you are subscribed to the Google Groups 
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to leo-editor+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/2c88e362-e8c8-4ab3-86b7-73f66c20a242n%40googlegroups.com.

Reply via email to