On Wed, Apr 18, 2018 at 6:52 PM, Joe Orr <[email protected]> wrote:

> Thanks for checking that, turns out at least on my Mac, Cmd+` works, not
> Ctrl.
>
> That leaves me with question #2:
>
> I have a node with 120 nodes in it. I want to make a separate node, clone
> all of the 120 nodes and put in the second node (and then organize them
> differently).
>
> Any way to clone a bunch of nodes at once?
>

​1. Easy: Select the parent node.  Do mark-subheads, then cffm.

2. More flexible: Use c.cloneFindByPredicate.  Here is tested code:

# Clone all nodes of parent into a new node.
parent = g.findNodeAnywhere(c, 'Test cloneFindByPredicate')
c.cloneFindByPredicate(generator=parent.subtree, predicate=lambda p: True)

HTH.

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 [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/leo-editor.
For more options, visit https://groups.google.com/d/optout.

Reply via email to