On Wed, Aug 27, 2014 at 12:22 PM, Todd Mars <[email protected]> wrote:
> Is it possible to view all parents of a clone and navigate to them easily > through the view? Interesting question. There should be a way, but as the range of answers shows, there isn't an easy way now. One could imagine, by analogy with the clone-find-all commands (which I hope you and everybody uses regularly) a clone-find-parents commands. This would create clones of all the parents of a cloned node p, and put them in a new node, call something like, "Found: parents of <p.h>" I'll do this "today". Edward P.S. Script writers should know that for any position p, p.v.parents is an array of vnodes that are the direct parent vnodes of p.v. However, p.v.parents is mostly for internal use--creating a position from a vnode is difficult/impossible. Rather than using p.v.parents, the clone-find-parents command will scan the entire outline, looking for nodes which have the target (cloned) nodes as one of its children. The command will then clone the parent, and move it to the "Found" node. As always, the command will create the Found node as the last top-level node, so as not to change positions during the scan. EKR -- 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 post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/leo-editor. For more options, visit https://groups.google.com/d/optout.
