dpradov / keynote-nf

Tabbed notebook with RichText editor, multi-level notes and strong encryption.
Mozilla Public License 2.0
264 stars 56 forks source link

copy nodes/trees between different files #643

Closed krommenaas closed 9 months ago

krommenaas commented 9 months ago

I lost the last two and a half notes of my keynote file (and didn't notice it for a few days). The last two notes are completely gone, the one before that only lost its second half. I guess something went wrong when saving the file and it wasn't saved completely.

I have backups so no text is lost, but I can't find a way to get those two and a half notes (each with some 100 nodes) back into my current keynote file. Copy/pasting trees doesn't work between different instances of Keynote NF, and there is no Import Note function, only an Export Note. Is there another way (other than copy/pasting the nodes one by one)? If not, one of these features would be a great addition to allow us to restore backups partially.

Stefanoko commented 9 months ago

Transfer whole Notes: Tools > Merge Notes ....

  1. pick the knt-file that still has the notes you need
  2. a dialog appears where you put checkmarks on all notes you need

Copy/pasting trees doesn't work between different instances of Keynote NF

In your general settings, enable "Allow only one instance", then try again.

krommenaas commented 9 months ago

Awesome, thanks so much!

begal commented 2 months ago

Copying subtrees between two files should work, as per the help file. It is not working for me. Using 1.9.5.2

Help file says: 1. Transfer subtree commands You can copy or move an entire subtree inside the folder, from one folder to another, or even from one file to another. Start by right-clicking the tree and selecting Transfer | Copy Subtree or Cut Subtree from the context menu. Next, move to the tree where you want to add or move the copied nodes. You can also open another KeyNote file (the nodes you have copied are retained in memory). In the target tree, click the node below which you wish to add the copied subtree, and in the tree context menu select Transfer | Paste Subtree Here. Note that the target tree must already have at least one node; otherwise you will not be able to paste nodes into it.

The error message says: 'No data to paste. Select "Transfer/Copy Subtree" first.'

dpradov commented 2 months ago

Hello @begal For this to work you have to open a file from a KeyNote session, copy the subtree, close the file and once the destination file is open, apply the paste. That is, it works from the same session/instance of the application.

Remember that you can also export and import .knt files. When exporting you can decide whether to export everything, just a folder, a subtree, etc. When importing you can import everything or a selection of folders.