Currently, changing a note type require to sync the entire collection. This add-on symply removes this restriction and assumethat you, the user, will act wisely in order to avoid creating bugs.
It means that you must sync all your devices before changing a note type, and then sync them after the note type. I.e. you must act exactly has you would have done without this add-on.
If you select a note n
on your computer, and change its note type,
then you must not do ANYTHING with this note type on any other
computer, smartphone, etc... before you have synchronized
them. Otherwise, you risk to loose some cards, or even the note.
In version 2.1
This add-on modifies aqt.browser.ChangeModel.accept
; the new method
call the last one. It also modifies
anki.collection._Collection.modSchema
while
aqt.browser.ChangeModel.accept
runs, and set it back to its original
value afterward.
It changes anki.model.ModelManager.change
.
Note for developpers The method change, of ModelManager, is changed. It now returns the list of the new note ids of the changed note
Update 2018-01-10: The creation date of note is preserved as much as possible (the date is incremented of a few miliseconds). The creation date of card is not preserved.
Key | Value |
---|---|
Copyright | Arthur Milchior [email protected] |
Based on | Anki code by Damien Elmes [email protected] |
License | GNU AGPL, version 3 or later; http://www.gnu.org/licenses/agpl.html |
Source in | https://github.com/Arthur-Milchior/anki-change-note-type |
Addon number | 1990502531 |