I'm aware of the clone-find-all-parents command, but usually I want to
display the other parents of a given clone in order to find one of them in
particular. I don't want the new nodes which clone-find-all-parents create,
because I don't want the extra work later of deleting these extra nodes. I
want something more transient.

I'm also aware of the transient nature of the goto-clone command.  It moves
the position selection to the next cloned instance of the current position.
However, searching through the clones only one-at-a-time feels
uncomfortable and slow to me.

I wanted to be able to see all the clones together at once like
clone-find-all-parents and at the same time have nothing leftover to
cleanup like the goto-clone command.

My answer is this small script button which will display links to all the
clones of the current selected position. The headline of the parent and the
clone is displayed:

@button show clones
for clone in c.vnode2allPositions(p.v):
    parent = clone.parent()
    if parent:
        g.es_clickable_link(c, clone, 1, f"{parent.h }->{clone.h}\n")


Thanks to the c.vnode2allPositions and g.es_clickable_link methods, the
code is easy!

Brian

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAO5X8Cz5CPVQug%3DXMumubg4kw5SB2K6Zsos-O4TMGLtThRUZ0w%40mail.gmail.com.

Reply via email to