TLDR;
This addons makes Anki handle cards of the kind type:cloze properly and adds support for multiple cloze parts on those cards
With the addon applied:
Motivation
Typing in the answers is interesting for studying. For many people, writing is more efficient for memorization than just reading.
On cloze cards, when hiding only the cloze parts, it's possible to study contents within a context.
The current version of Anki doesn't work well with that combination (On cloze card, it replaces the entire content with a single input text).
This addon solves this issue.
> Note from dev: At first, I'm using it for source code blocks. Soon, I think about using for cards with language (ex: German) phases as well
How it works
- Create a card of type Cloze deletion
- ~On the note templates editor, instead of using cloze:fieldName, use type:cloze:fieldName~
- On the note templates editor, instead of using cloze:fieldName, use fill-blanks:cloze:fieldName (ex: {{fill-blanks:cloze:Text}})
ATTENTION:
In the current version (25), the prefix is not type:cloze anymore but fill-blanks:cloze
- Then, on review time, the cloze parts will be replaced with input texts
> Note: the images have a dark background because of the Night Mode addon (this behavior has nothing to do with the Fill the blanks addon)
Check out notes about the integration change:
https://github.com/ssricardo/anki-plugins/wiki/Fill-the-blanks-Default-Integration
Extra features
Instant feedback
While the user types in the answer, the corresponding input field changes.
The background color changes according to the value:
- incomplete: yellow
- correct: green
- incorrect: red
> Note from dev: In my own tests, this is really good. It makes me try harder to get the right answer.
> It's possible to disable it using the configuration: feedback-enabled
Fill in next character
[From version 25.03-1 on]
Let's say you can't remember the value, but would like a hint, that is the next missing character.
This will be provided by pressing:
- On Windows: [Ctrl + ?] (control and question-mark);
- On Mac: [Command + ?] (command, shift and /);
Note that nothing will be filled in if the current value is already in state "error".
Visual changes
It's possible to customize some parts of the fields.
Check out: https://github.com/ssricardo/anki-plugins/wiki/Fill-the-blank---Styles
Bugs / Suggestions / More documentation
Please, feel free to open issues about possible bugs found.
That and the source code are available on: [Github](https://github.com/ssricardo/anki-plugins/tree/master/fill-the-blanks)
! Downvoting it here influences absolutely nothing about tackling an issue. If you have an issue, post on Github!
But be aware, this isn't a paid software, supported by a company. That is, I'll tackle it when I get the chance.
Last Updates
25.3-3 | 27/03/2025
- Fix ignore-case feedback (issue #164 - thanks @ryndovaira)
- Fix cleaning context up
- To Avoid running the addon in cards that it's not used (related to issue #163)
- Add a margin between a wrong answer and the expected one (besides adding the typed value as a on-mouse-over hint)
25.3-2 | 08/03/2025
- Fix shortcut for "show next character" on MacOS
25.3-1 | 07/03/2025
- Remove the old integration in favor or the new (now default)
- Add feature: Suggest next character (issue #70)
- Support CSS styles for distinct field size (related to issue #151)
- Strip HTML in the value in the input field (issue #157)
...
Issue on last update?
Look if this is applicable? https://github.com/ssricardo/anki-plugins/issues/158
About
Add-on developed by Ricardo.
Check out more of my add-ons on [Github Anki Plugins](https://github.com/ssricardo/anki-plugins)
Support
If this helps your life, consider buying me a coffee :)
