This is getting me to think there should be a new method, say c.getCrossfileUnl(p), that returns a tuple (file, gnx). The caller can then assemble the two components into a cross-outline UNL if desired, or just use the gnx part. There would be no need for a caller to root around to find the right file and combine it with the gnx, but equally no need to split out the file part from the gnx part if that were wanted. Or maybe the tuple should be (full_unl, file, gnx). This new method would not replace any existing methods, but would be available to new code going forward.
On Monday, July 3, 2023 at 6:00:32 PM UTC-4 Edward K. Ream wrote: These plugins create and manage links, including cross-outline links. But gnx-based unls can also refer to nodes in other outlines! Most users will have no need for either plugin. Both plugins save link data in uAs. That's an interesting approach! However, a script could easily create uAs by searching for gnx-based unls. The plugins are way too complicated. *Summary* The backlink and quickMove plugins are overly-complex ways of following cross-outline links. I do not recommend either plugin. Both plugins now reside in the 'Experimental/Obsolete' node in LeoPyRef.leo. All of your comments are welcome. Edward -- 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/352616f8-e1da-4d3d-a95a-15127effa48bn%40googlegroups.com.