Open ohare93 opened 4 years ago
Now supported as read only (Anki -> Source) as of version Cyclops v0.3.4 #24
Support to write to specific subdecks would still be good. Though Refactoring how CrowdAnki does it (rather than the horrible children method) would be better to do first :sweat:
I've got some interest in trying to tackle this, as I've got ~200 subdecks I'd like to be able to generate separately.
What would something like this look like? For CrowdAnki -> source, perhaps a flag that recursively runs a recipe for each subdeck and puts them in separate folders? Compiling the source back into a crowdanki deck could then be done either recursively through the same folder structure, or for individual subdecks
Great to hear! I'll happily review a PR and help out where I can 👍
The main issue here is the question: how do we map the subdecks to a specific source file (csv)?
I implemented "partial support" for subdecks in a crappy way: by simply taking all notes recursively from the CrowdAnki file here. This completely separates the note from the subdeck, and so this should be fixed in order to properly map notes to and from subdecks.
There are many ways I could see full support being implemented:
So for users backing up their own personal cards and perhaps even updating them programatically, then all should work with Subdecks right now for existing cards 🤔 I believe! But for users that wish to craft a CrowdAnki export with subdecks for others to consume from new, then there is no support for this just now in Brain Brew. That's the main thing that could be good to improve 😁
Oh then there's also the possibility of adding a flag to append to an existing CrowdAnki export in a subdeck, rather than overriding any of the parent information (though note models shouldn't be duplicated? 🤔). Then the same for reading from a specific subdeck too.
The difficult thing there would be what about doing it programatically? 😅 for your 200 subdecks, for instance. That would be a large recipe file!
CrowdAnki exports can contain a
subdeck
key in the top level, which is recursive of all the decks below this deck, etc.Brain Brew does not do anything with this. No idea how difficult this would be to implement.