gnx-based unls make the backlink and quickMove plugins obsolete

33 views
Skip to first unread message

Edward K. Ream

unread,
Jul 3, 2023, 6:00:32 PM7/3/23
to leo-editor

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

Thomas Passin

unread,
Jul 3, 2023, 11:23:37 PM7/3/23
to leo-editor
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.

Edward K. Ream

unread,
Jul 4, 2023, 8:11:51 AM7/4/23
to leo-e...@googlegroups.com
On Mon, Jul 3, 2023 at 10:23 PM Thomas Passin <tbp1...@gmail.com> wrote:

This is getting me to think there should be a new method, say c.getCrossfileUnl(p), that returns a tuple (file, gnx). 

(p.v.context.fileName(), p.gnx)

Edward
Reply all
Reply to author
Forward
0 new messages