giuspen / cherrytree

cherrytree
https://www.giuspen.net/cherrytree/
Other
3.36k stars 458 forks source link

Copy link to node - Not overwrite selected text on paste #2283

Open Groberen opened 1 year ago

Groberen commented 1 year ago

Is your feature request related to a problem? Please describe. Go to a node, then Copy link to node. Then go to some other node.

Select some unformatted text. Then paste.

Now, any text that was previously selected is now gone and replaced by the name of the node (or anchor). Because I also often print the pages, the full name of node link is unwanted - I want just to simply write to not be confused when printed.

The workaround for this is cumbersome also.

Describe the solution you'd like

If the clipboard contains a node link, then pasting while any unformatted text are selected should cause the selected text to remain, but still become a clickable link to a node (or anchor).

If no text are selected, the paste link should behave just the same as in current version of CT.