Menu option: Duplicate current deck.
- Ask the user, "Are you sure?" and Indicate the name of the deck that will be copied.
- For each note type (record type) used by the current deck (Deck A), ask the user whether to fork the note type as well. Once the user has made decisions for all note types, create new types as needed, by copying the existing ones.
- Create a new deck (Deck A2) with a new ID. Initial name: same name, plus the word "copy" or a number at the end
- For each card in Deck A:
a) skip this card if it has the same note as a previous one.
b) Find its note and create a new note in Deck B with the same content but a new ID
c) Set the new note's type to whatever was chosen in step 1.
d) generate a set of flashcards for the new note and make sure their deck is set to the target deck.
See also: issue #9, #14
Menu option: Duplicate current deck.
a) skip this card if it has the same note as a previous one.
b) Find its note and create a new note in Deck B with the same content but a new ID
c) Set the new note's type to whatever was chosen in step 1.
d) generate a set of flashcards for the new note and make sure their deck is set to the target deck.
See also: issue #9, #14