org-anki icon indicating copy to clipboard operation
org-anki copied to clipboard

Discover note fields without needing to edit `org-anki-model-fields`

Open gsingh93 opened this issue 1 year ago • 4 comments

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.

gsingh93 avatar Mar 27 '23 05:03 gsingh93

Hi, by discovering do you mean querying the fields from AnkiConnect?

eyeinsky avatar Jun 17 '23 09:06 eyeinsky

Yup, exactly.

gsingh93 avatar Jun 17 '23 18:06 gsingh93

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 :)

eyeinsky avatar Aug 25 '23 08:08 eyeinsky

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

RoseWebb avatar Sep 01 '23 11:09 RoseWebb