DEV Community

LOBK
LOBK

Posted on

3 2

Creating Anki flashcards on iOS

Creating Anki flashcards can be a clunky process on the desktop, more so on iOS. I have created a Siri Shortcut that grabs a list of questions, asks the user to answer each question and adds both the question and answer to Anki. I modified the shortcut so that I can also have the question and answer added automatically into Anki.

The former is useful for reinforcing concepts before they are added into Anki. I've found that flashcards are more useful if I've already tried to learn the content first, rather than learning it after I've added it to Anki. However, there are times when I'm reading a textbook and creating flashcards at the same time. As a result, I prefer to have the answer saved so that I don't have to go back in the textbook to find the answer.

The callback url (forgive me, I still don't know what the correct 'terminology' is for url schemes) for Anki is anki://x-callback-url/addnote?profile=<USER>&type=Basic&deck=<DECK NAME>&fldFront=<CONTENT>&fldBack=<CONTENT>&tags=<TAGS>

<DECK NAME> and <USER> can be hardcoded into the URL because they don't change much. However, I decided to use Magic Variables instead of hardcoding them in case I want to switch decks in the future.

Sentry growth stunted Image

If you are wasting time trying to track down the cause of a crash, it’s time for a better solution. Get your crash rates to zero (or close to zero as possible) with less time and effort.

Try Sentry for more visibility into crashes, better workflow tools, and customizable alerts and reporting.

Switch Tools 🔁

Top comments (0)

Billboard image

Create up to 10 Postgres Databases on Neon's free plan.

If you're starting a new project, Neon has got your databases covered. No credit cards. No trials. No getting in your way.

Try Neon for Free →

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay