- You should have QuickAdd and Spaced Repetition plugins installed on your Obsidian
- In the script, change the
flashcardsFolder
value to the folder where you store your flashcards (default "Flashcards");-
Folder should have at least one file where you store your flashcards
-
- Copy the
vocabulary.js
script below to your vault (e.g. "Scripts" folder) - Go to QuickAdd --> Manage Macros.
- Type 'vocabulary' and click Add Macro
- From the macro list, find the newly created macro and click Configure
- In config window, navigate to User Scripts section, select the script you've added from the dropdown list and press Add
- Close the config window, as well as the macro manager window
- In the main menu of QuickAdd plugin, create "Macro" type choice by providing a name for it and pressing Add Choice.
- From the choices list, find your newly created choice, and select βοΈ (gear icon)
- Select the newly created macro from the dropdown list, and close the window
- Enable the choice (command) to appear in the command palette by clicking on the β‘ (high voltage icon)
- Ribbon Button: Assign this macro to a QuickAdd command and add it as a button.
- Command Palette: Use "QuickAdd: Add New Word" from the command palette (Ctrl+P)