--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/bfd2fee7-7792-45b8-8964-ff18881d4ac9n%40googlegroups.com.
Thanks for this simplification! supporting Leo's unl links is on my todo list for leojs (and leointeg!)
So now my bookmarks manager will not work, something I use every day and depend on. I suppose I will have to pull out code from the attic and put it into my own module. Or recreate the pathlike part of the functionality, anyway.
I'm unclear as to whether the gnx string for a given node - that is, p.gnx - will now be in a different format.
On Sun, Jun 25, 2023 at 4:48 PM Thomas Passin <tbp1...@gmail.com> wrote:So now my bookmarks manager will not work, something I use every day and depend on. I suppose I will have to pull out code from the attic and put it into my own module. Or recreate the pathlike part of the functionality, anyway.Don't panic. I'll work with you on this.
I have just completed taking the currently-existing unl handling functions p.get_UNL(), g.findUNL(), and g.handleUnl() from the core - the ones scheduled to go to the attic or be changed - and turned them into stand-alone functions in my bookmarks manager.
The bookmark manager needs to 1) flatten the paths of nested nodes (to provide labels like "software/python/frameworks") and 2) make each step of those flattened labels clickable so that a user can navigate to their node. Gnxs can't provide that capability, whether or not they are called "new style unls". Pre-change unls, OTOH, are ideal and require almost no tinkering with to achieve those requirements. If Leo won't support those capabilities, the the bookmarks manager needs to compute the equivalent, and the obsoleted Leo methods already do that. So it's easier for me to use them than to re-create their capability from scratch.The zettelkasten machinery runs on gnxs and should be less affected if at all. But I have a host of nodes that include unl links to other outlines, and none of those links would work any more. Some supporting commands do things like getting the unl of a node and copying it to the clipboard. Maybe those would still work, maybe they wouldn't. I'll have to see.
1. CTRL-clicking on an old-style unl pointing into the same outline navigates to the right node; for a unl pointing into a different outline it does not navigate to the right place or even the right outline.
2. Both the bookmark manager and the zettelkasten apps partially work but not completely. I will look at using these new "legacy" methods next.
On Mon, Jun 26, 2023 at 12:50 PM Thomas Passin <tbp1...@gmail.com> wrote:g.findGNX searches all open windows.The legacy version of g.handleUnl contained Leo-specific code which I deleted. Afterwards, the code called g.openWithFileName to open a window, then searched in the window.
Yes, since the UNL contained the path to the outline, Leo could open a non-open outline and navigate to the right node. I always thought that was a wonderful, even almost miraculous, capability. We shouldn't lose it.
Furthermore, having the path visible in the status bar could be really useful
show-clone-ancestors and show-clone-parents are well worth removing.Something close to seven plugins use unls, including mod-http and quickMove. They should all be checked to see if they will still work.
In the zettelkasten app, using the new p.get_legacy_UNL() doesn't work right. I think it's because I had to change the ">" to "%3E" to get QT to pass it to my code when I click on these links (these paths appear in an anchor element). So there must be another of the changed methods that doesn't quite play right with this. I'll try to track it down tomorrow.