No description
Find a file
2025-02-17 19:07:51 +00:00
.github Fix Release Main JS Path 2023-08-14 16:02:14 +01:00
assets Add Choice Exercise 2023-09-23 15:29:44 +01:00
examples Add Example and Improve README 2023-08-14 15:28:16 +01:00
src Add Choice Exercise 2023-09-23 15:29:44 +01:00
.editorconfig Initial commit 2023-08-02 21:43:39 +01:00
.eslintignore Initial commit 2023-08-02 21:43:39 +01:00
.eslintrc Initial commit 2023-08-02 21:43:39 +01:00
.gitignore Initial commit 2023-08-02 21:43:39 +01:00
.npmrc Initial commit 2023-08-02 21:43:39 +01:00
esbuild.config.mjs Add Select Exercise 2023-08-02 23:54:59 +01:00
LICENSE Create LICENSE 2023-08-14 16:16:06 +01:00
manifest.json Add Version Increment in manifest 2025-02-17 19:07:51 +00:00
package-lock.json Add Match Exercise 2023-08-09 23:00:56 +01:00
package.json Update Version 2023-09-23 15:40:52 +01:00
README.md Fix README to clarify Choice Options 2023-09-23 15:35:38 +01:00
styles.css Fix Exercise Element Multi Line Support 2025-02-17 18:57:58 +00:00
tsconfig.json Initial commit 2023-08-02 21:43:39 +01:00
version-bump.mjs Initial commit 2023-08-02 21:43:39 +01:00
versions.json Update Validation Responses on Clear 2023-08-08 23:22:32 +01:00

Obsidian Exercises

Obsidian Exercises was developed as an easy way to create exercises within Obsidian. Whether you are preparing for exams, learning a language, refreshing your memory, or any other purpose, you can now create them alongside your notes.

This plugin uses a block component as a base. Within it, you can define normal text and the exercise element below. Example:

```exercise
$match{Ich=>I, Wie=>We, Er=>He, Es=>It, Sie=>She}
```

Select

Match Exercise

Note: The Options Menu is not showing in the image above.

$select{"option1", "option2" [, …]}

Select an option from a drop list. Options are separated by commas, but consider always using quotations. For multi word values (that contain spaces) they are necessary. Options are randomized before being displayed.

To define a correct option you can simply prepend the option with an asterisk (for example: *"option").

Example — $select{"option1", *"option2", "option3", "option4"}

In the example above, there are 4 options and option 2 is the correct one.

You can define multiple correct options and they will all be evaluated. When revealing options, the first in the list will be the one shown.

Input

Match Exercise

$input{"option1", "option2" [, …]}

Input Text into a textbox. The options are evaluated as they are written. You can write one or more options, they will all be evaluated, but only the first is shown on reveal.

Example — $input("Correct Text.")

In the example above the correct input is "Correct Text.".

Line

$line{"option1", "option2" [, …]}

Line is a wider version of input.

Match

Match Exercise

$match{"option1"=>"value1", "option2"=>"value2" [, …]}

Match values from two columns. The matches are defined with "=>" and separated by commas. These values will be randomized before being displayed.

Choice

Match Exercise

$choice{"option1", *"option2" [, …]}

Choose one or more options from the multiple choice box. Options are separated by commas, but consider always using quotations. They are required for multi-word values (containing spaces). Options are randomized before being displayed.

To define a correct option you can simply prepend the option with an asterisk (for example: *"option").

Example — $choice{"option1", *"option2", "option3", *"option4"}

In the example above, there are 4 options, option 2 and option 4 are correct. All correct options and no incorrect options must be selected for the answer to be considered correct.

Thanks

@Raboro for fixing some typos

Support

Buy Me a Coffee at ko-fi.com