Anki add-on: Transfer scheduling data from one card to another

Transfer scheduling data and properties from one card to another. 2024-08-09 : Addon is working again ! Please note that it is for now impossible to undo the operation so please backup your collection before using it. I use it to merge old flawed notes which should be single notes with several cards. To do so, I transform one of the note in a two-card note (Ctrl+Shift+M). This generates a new card. I then use the add-on to transfer the historical data from the second note to the newly created card. By default, the useless note is kept, but it is possible to auto-delete it as the data are transfered. Shortcuts are customizable in config.json. Auto-deletion after the transfer and automatic transfer in the same deck can also be set in config.json Usage : In the browser, select the first card (from which data have to be taken), then go in "Cards" > "Scheduling data : Transfer from" (or Ctrl+Alt+C) select the second card (to which data have to be transfered), then go in "Cards" > "Scheduling data : Transfer from" (or Ctrl+Alt+V) Bug report : Please post an issue on the gitlab repository if you find a bug or want to propose an improvement. Changelog : Version 0.5 - 2024-08-09 Fixed Partially fixed the addon which was broken for a few months since Anki 23.10. It works but without "undo" (and with a reset of the focus in the browser after the data is transferred. Work in progress, help welcomed. Thanks to Shigeyuki for providing a working option while the addon was broken ! Version 0.4 - 2020-09-18 Fixed With Anki 2.1.29 and above (at least), the previous versions of the addon broke the sync function. Sorry ! See this post for details and instructions. In a nutshell, use this code to fix the sync function (in the debug console ) : mw.col.db.execute("update col set usn=3000") mw.col.setMod() After that force the upload (Tools > Preferences > Network > Force sync). It should be ok. If it doesn't work, put a higher number than 3000. Version 0.3 - 2020-04-15 Fixed Bug fix of the automatic delete, which did not delete the cards associated with the note. This was achieved by anki's "integrity check" function and is now achieved by the addon. Version 0.2 - 2020-04-14 New Possibility to transfer the "deck" at the same time Version 0.1 - 2020-04-14 Fixed The card 1 (from which scheduling data is taken) now takes a cid which was not used by a deleted card. Version 0.0 - 2020-03-24