corollari / ankiTab

Browser extension that replaces the new tab page with Anki flashcards
https://ankitab.com
The Unlicense
187 stars 16 forks source link

Support "type:" fields #18

Open telotortium opened 5 years ago

telotortium commented 5 years ago

I'd love to be able to type the answer on my cards whose templates contain {{type:FieldName}} (see manual). It appears that Anki renders this to [[type:FieldName]] on the card, and then uses some sort of custom processing in the Python code to insert the type field (see https://github.com/dae/anki/blob/918c426/anki/collection.py#L568). It might be possible to query the contents of the field using AnkiConnect and use JS to fix up the card contents.

corollari commented 5 years ago

I'll look into it but couldn't this be implemented in ankiConnect so that all extensions using it handle this properly?

arielaco commented 4 years ago

Not being able to view some cards due to this issue. Any workarounds available?