In a given tree that has nodes with the exact same headline, how can I replace one node with a clone of the earlier in the outline with the same headline.
> In a given tree that has nodes with the exact same headline, how can I
> replace one node with a clone of the earlier in the outline with the
> same headline.
You don't replace a node by a clone, you create another clone and move
it where you want it.
Edward
> You don't replace a node by a clone, you create another clone and move it where you want it.
Yes, in creating a new outline I would do so, but I am looking to 'fix' an outline that has lost its clones
and I want the Code1 and Code2 nodes to be re-linked to the CodeSnippet subtree as clones.
I also found that paste-retaining-clones assumes the first node will be a clone too, not just the children. I was expecting the top node to be a simple copy-paste and any children that are clones to remain clones
The outline can have many cases of this that are awkward to fix by hand (i.e. rather have a script)
I will explain in a future posting about the problem of "an outline
losing its clones"
It actually comes from creating and using a DB system to store and
read nodes.
I've occasionally wished for a plugin which scanned @file trees for
duplicate content automatically created clones. It would be useful
when studying/slurping code from external projects. Or at least in my
imagination it's useful. ;-)
--
-matt