Cutting⁄Copying⁄Pasting nodes and subtrees
To cut a node or subtree1,4
- Click Main menu ⁄ Tree ⁄ Cut ⁄ Subtree; or
- Click Tree context menu ⁄ Cut ⁄ Subtree.
Cutting involves copying the node or subtree to the TreePad Clipboard and deleting the node(s) in the source file.
To copy a node1
- Click Main menu ⁄ Tree ⁄ Copy ⁄ Node; or
- Click Tree context menu ⁄ Copy ⁄ Node.
Here, a copy of the node is stored in the TreePad Clipboard. No copies are made of any child nodes.
To copy a subtree2
- Click Main menu ⁄ Tree ⁄ Copy ⁄ Subtree; or
- Click Tree context menu ⁄ Copy ⁄ Subtree; or
- Press Ctrl+Alt+C.
Here, the whole subtree (root node and any child nodes) is copied to the TreePad Clipboard.
To paste a node or subtree3
- Click Main menu ⁄ Tree ⁄ Paste ⁄ Node⁄Subtree; or
- Click Tree context menu ⁄ Paste ⁄ Node⁄Subtree; or
- Press Ctrl+Alt+P.
Here, the contents of the TreePad Clipboard are inserted into the tree so that the root node in the TreePad Clipboard becomes a child node of the node selected in the destination file.
- In Cutting and Copying, the original node⁄subtree is copied to the TreePad Clipboard. The only difference is that in Cutting, the original node⁄subtree is deleted after copying, whereas it is retained after Copying.
- If the node has no child nodes (i.e. there is no subtree), this command simply copies the node.
- You should always paste what you have just cut out into your destination as soon as possible, even though the cut node or subtree is saved on the TreePad Clipboard. For if you cut a second node before pasting the first one, the TreePad clipboard will be overwritten with the second node.
- Remember that the act of Cutting a node with child nodes attached removes the node and its children from the tree, in other words, the whole subtree is cut. If TreePad detects that child nodes are present, you will be asked to confirm the Cut before it is made as a precaution. Even so, if you are Cutting a very large subtree, it may be preferable to Copy it instead, then Delete the original later when you are sure you did the correct thing!