ohare93 / brain-brew

Automated Anki flashcard creation and extraction to/from Csv
The Unlicense
89 stars 5 forks source link

Note Model Generation #7

Open ohare93 opened 4 years ago

ohare93 commented 4 years ago

Need to be able to generate Note Models with a script, so that replacements can be automated and many models can share the same body, but with different Card Templates / Fields / Text / etc.

The issue is that I also want to maintain the dual multi directional sync between Anki that Brain Brew has now. Change it in a Yaml file, then sync those changes to Anki. Change it in Anki and sync those changes to the Yaml file.

The 3 types of files:

I have come to the conclusion that this is not possible, in the way a user would want. The issue here is that a user will edit an individual Card Template in either Anki or Yaml and want that change to be applied to the entire list. But this requires the changes in the Yaml file to be synced back into the Generation file. At present moment I don't think that's feasible.

If this feature is made now, I imagine it will be a one way process from Generation -> Yaml but Yaml <-> Anki is fine. Then there can be a verification check command to confirm to be run after Anki -> Yaml that confirms the Generation file creates the same result as the Yaml file. Otherwise the user should update it manually and check the verification after that.

Open to suggestions.