Right now I am using the following methods to “Move” a node:
- Drag&Drop with mouse from source to target
- using “Move to…” action (from context menu or shortcut)
- Cut a node (CTRL+X) from source and Paste (CTRL+V) at target location
All of them have their up- and downsides:
-
Drag&Drop
upside: does not break[[links]]
upside: works well when source and target location are close to each other
downside: can not use it if source and target are far apart (too inconvenient) -
“Move to…”
upside: does not break[[links]]
upside: good if source and target are far apart
downside: hard to define the exact target location (ex. to end? start? somewhere in the middle?) -
Cut&Paste
upside: works well regardless if source and target location are close or far away
upside: can define exact target location (position of pasting)
downside: breaks[[links]]
The last one (Cut&Paste) is the most convenient to use. I always use it if I know nothing links to the source node. If I know the source node is being linked to, I try to use the other 2 options.
My feature request
Could you make Cut&Paste also not breaking [[links]]
like the move actions do?
Potential solution
- You could add metadata to the clipboard, which is used to make pasting a node as if it has been moved (aka not breaking
[[links]]
), ex. having the node id in the clipboard metadata - Since it’s possible to paste a content multiple times, I would suggest to start making copies of the nodes after the first “Paste” (aka if the node ids to paste are already in the document). So if the user decides to Cut&Paste&Paste&Paste, existing links will link to the first pasted nodes.
- If there are links to “child” nodes, those should also not break