org-anki
org-anki copied to clipboard
Discover note fields without needing to edit `org-anki-model-fields`
I'm not sure how difficult this would be, but if there's a way to get the fields of a note type without needing to add them to org-anki-model-fields
, that would be very convenient. We could add the ANKI_NOTE_TYPE
property or change the default note type and create new notes without any additional customization.
Hi, by discovering do you mean querying the fields from AnkiConnect?
Yup, exactly.
Leaving a note here for myself (or anyone else who wants to implement this :)): need to find out whether AnkiConnect can be queried for a list of models and their fields. After that, adding a command to run and display results would be easy :)
Leaving a note here for myself (or anyone else who wants to implement this :)): need to find out whether AnkiConnect can be queried for a list of models and their fields. After that, adding a command to run and display results would be easy :)
I think this is what you are looking for: https://github.com/FooSoft/anki-connect#modelfieldsontemplates