Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Expose all UI functions through the JS API

Open silidev opened this issue 1 year ago • 0 comments

It would be amazing if all UI functions can be accessable through the JS API. By exposing all, a complete UI overhaul e. g. for better accessability (bigger) would be possible. Many UI functions are exposed, e. g. starting the tag chooser, burying, setting due date et al.; others are not, e.g. entering Edit-Mode.

I would work on this issue if someone helps me a little. I am able to modify the code of the JS API, but AnkiDroid's other code is just too complex for me / my available time. E. g.:

  1. How can I programmatically "press" the Edit button?
  2. How do I programmatically add a tag to the current card?
  3. I am also very interesting in programmatically "answering" (like tapping 1h, 1d, etc.) a card and at the same time setting the due date to a different date than the answer button has. The current API functions cannot be called after one another because the first one will continue to the next card. Also changing the deck at the same time would be very helpful.

Sorry for using funny terms, I am not versed in Anki's terminology.

silidev avatar May 06 '24 14:05 silidev