Mochi

Support for lenient/partial imports

I have a lot of flash cards written in Org-mode and I wanted to try the import functionality out, but it is not behaving as I would expect. The workflow I'm aiming for is periodically importing a .mochi archive that includes all of my decks, where duplicate cards are overwritten and existing decks are merged.

At present: if I want to import a .mochi that contains duplicates, I have to remove all relevant cards and decks first. This would remove the flashcard tracking which is not in the archive I provide (while I write the cards at a computer, I review them on my phone).

A minimal example would be this: create a deck with a card and export it; upon import the card is overwritten with an exact copy (so it looks like a noop). Another: same as above, but remove the card after export; upon import the card should be merged into the already existing deck.

Right now Mochi will complain: "Hey, these decks and cards already exist in the database," and then abort the import.

Is the behavior I'm looking for in-scope? It is a blocking issue for me using it. Cheers.