39 13
Contact Author Sign in to rate

Cloze Overlapper for Anki 2.1

0.16MB. Updated 2021-01-12. Only supports Anki 2.1.x.


Forked from the dev build for 2.1 on Glutanimate's Github. All credit for the actual fix goes to phu54321: https://www.reddit.com/r/Anki/comments/jlj1yy/fixing_cloze_overlapper_for_2128/ Find him on Github: https://github.com/phu54321 All that I actually did was package the fix as an Anki addon. You can fork me here: https://github.com/newageoflight/cloze-overlapper UPDATE: Unfortunately I won't be able to work on this anymore due to my job commitments. If it helps anyone trying to fork the repo to fix it themselves, it seems the shortcut overrides are getting ignored since they first get captured by the web view (the new TypeScript/Svelte UI) as of v2.1.49 and the current addon script still uses the old model of listening to keypresses via Python. I haven't really been able to investigate issues in other domains e.g. generation order, random crashes.


As add-ons are programs downloaded from the internet, they are potentially malicious. You should only download add-ons you trust.

Supported Anki versions:

To download this add-on, please copy and paste the following code into Anki 2.1:


If you were linked to this page from the internet, please open Anki on your computer, go to the Tools menu and then Add-ons>Browse & Install to paste in the code.

All Anki 2.1.x Add-Ons Contact Author


on 1652223435
Someone could help me on this error on 'Cloze overlapper' plugin? Suddenly, this error did staring at me:

"NOTE TYPE ERROR": Looks like your note type is not configured properly. Please make sure that fields includes all of the following fields: Back, Settings, Text1-TextN, Front

Anyway, for contact me, this is my email: lyone_db@hotmail.com
on 1651462398
Thanks, it works great. At first, I was confused but I realized that you have to click the [[.] button after typing your list.
on 1651312545
Works perfectly for simple lists ! Thanks !

New note -> select Cloze (overlapping) template -> Fill Original field with a list -> Fill Title field -> click the "[[.]" button (or ALT+SHIFT+C) -> TextX fields automatically filled in ;)
on 1650689046
Only works for simple lists. Same issues since August seemingly. I have to manually code in more complex types of overlapping clozes if I want it to format anything other than a list. Really annoying, took me hours to figure out exactly how I wanted to format things when it seemed to be pretty simple in the original addon, I don't know what's gone on between updates to cause these issues.

For anyone in future who might be having the same issue as me with this add-on, to cloze overlap multiple words in a sentence, write [[oc1::word]] in the original box, and make sure your text box has the original text with this formatting around the word you want to cloze delete: {{c1:word}} with no other HTML formatting surrounding it. You don't need to do this for simple lists. If you don't want to reveal the words all at once, so you would format it like [[oc1, [[oc2, etc... Then you have to format it for each text box, replacing the first cloze deletion (aka [[oc1::word]] with a ... or other placeholder, and writing {{oc2::word}} in the second textbox and so on. This will still create multiple cloze deletion cards instead of a single one, but at least unlike with regular cloze deletion, the answer won't be revealed to you immediately from context as there will still the placeholder ellipses there.

I'm not sure if there was an easier way to do this lol but I couldn't figure out a different way from watching or reading through tutorials.
on 1649835896
Does not work for me. I tried to type in the 12 cranial nerves. So I have 12 lines. When I trie to generate the clozes with the Generate overlapping clozes it shows me the text "Warning: This would generate 33 overlaping clozes, The note type can only handle a maximum of 20 with the cucrent number of text field. When I use Alt+Shift+C so make the clozes it doesn't work as well. I don't know why it's showing that there would be 33 overlaping clozes because there are only 12 lines... Only way to make it work is to copy it in the "Full" field and set the clozes there. BUT then I have a normal list and the Overlapping cloze options (just one hint etc.) are not accepted. I'm using Win10 and Anki 2.1.49.

Update: Found out, that it does not work when I copy my text in the original field. By typing every single line by myself it works. Don't knot why because I copied it in the field and deleated every empty line. Not sure if I will use it this way because it doesn't save time this way. I will test it a little bit more. But function is given, so thumps up.

on 1646933371
Without title it has strange error but it works great thanks!!!
on 1646834565
Works as advertised. In my first attempts I was creating a list and using the ‘close deletion” button. This resulted with the error: “Cloze deletion can only be used in fields which use the 'cloze:' filter. This is typically the first field.” Then I discovered the ‘Generate overlapping clozes’ button. I added my list, selected the ‘Generate overlapping clozes’ button, and it worked as advertised. I use ANKI on iMac M1 2021, iPhone XS and iPad Pro 2nd Gen.
on 1644782054
Using 2.1.49. Won't create more than 1 card. Get the following error when I try to add anything
Cloze deletion can only be used in fields which use the 'cloze:' filter. This is typically the first field.
on 1643970928
I gave it a test on 2.1.49, works fine
on 1640442797
Works for 2.1.49
on 1638599118
It was good. But after the 2.1.49 update the cloze overlapping shortcut or even the button is not working
on 1638308282
Great addon but the 2.1 compatibility is still partial.
Apart from the shortcut problem (with ordinary clozes produced), the order of created cards isn't in the right sequence, it shows as it should only as new cards but if you review them then via a custom study or filtered deck (based on date added display order), the cards show in a mixed sequence, which breaks the idea.
The cause is that the Card ID's sequence is not in pace with card numbers (ol 1, ol 2 etc up to ol 21). Cards created dates (they are in the same sequence as Card ID's) hence are also mixed up
on 1638233823
It looks great in the video, but unfortunately some features are not working.
Ctrl-shift-D/Ctrl-shift-Alt-D are not working on my Mac (using cmd)
After installing the Shortcut addon Ctrl-shift-C/Ctrl-shift-Alt-C works for single wrap but not multi-wrap.
It would be nice to have a button for this actually.

Also, the remove all cloze markers in text [x] button, just deletes the highlighted text, which isn't useful.
on 1637554540
You the man! I've been waiting for this for so long. I do not know how to do what you did, and for that, you're my hero!
on 1635192746
Essential add-on! Thanks to the people who work hard on this.
on 1635029088
The shortcut doesn't work and it doesn't work with more than 40 fields either. At the number 40 it shows the message of "Cloze deletion can only be used in fields which use the 'cloze:' filter. This is typically the first field." despite this, if you delete the flashcard with the {{c40::}} automatically created, the rest works perfectly (at least until 60 fields)
on 1632530581
Doesn´t work for .46.... you gotta downgrade... small pp U_U
on 1632094511
finally, Thanks pro
on 1631579702
Not working .46
on 1631148998
Great job! thanks
on 1630658060
Solution for the "Shift + Cmd + C"-problem, until Glutanimate will update his ClozeOverlapper-Addon in october:
You still need a working version of the ClozeOverlapper (until Anki 2.1.35) where the shortcut works.(If you don't have a stable version of the CO, i don't know if this workaround working) Then you install the "Customize Keyboard Shortcuts"-Addon (https://ankiweb.net/shared/info/24411424) and restart Anki. After that you can update Anki and the shortcut should work again when creating new ClozeOverlapper cards.
Known problem: Before(!) you add new Cloze cards, you have to generate the cards first, otherwise you get an error message and incorrect cards are generated.
on 1630211452
somewhat working with few bugs, no use beyond simple lists. Any bold, underlined or italic words create a new cloze. This is not yet optimized for overlapping clozes in a paragraph for those reasons and that you need to manually enter the old cloze style. works ok for simple lists but time consuming for everything else
on 1629789660
It makes a cloze of every period(.) or Bold or anything it likes but it does not make cloze of any word I want.
It should not be on anki add on list. Wasted my time.
on 1629226467
on 1629215311
on 1629068432
Cmd + shift + c produces {{c1:: }} type cloze instead of oc1 type
on 1628851238
It's not a bug, it's a feature! If you place your text in the field named "Original" and click on the button above "[[.]" or use Alt+Shift+C, you get {{c1::}} clozes instead of the old [[oc1::]], but apart from that everything seems to work fine on my end. I'm using 2.1.46 on debian buster.
on 1628744112
Great but also experiencing issues with ctrl shift c resulting in usual cloze.
on 1628161446
same as last review: Shift-cmd-C adds normal cloze, and is only changing the line of text (not just the highlighted word on the line). is there a fix?
on 1628123960
Really nice, but I'm facing the same issue as the guy two comments below me (cloze hotkey inserting {{c1::}} instead of [[oc1::]], Is there any way to resolve this?
on 1627577709
on 1626884713
The Addon is fine and easy to use, but I am facing an issue.
I want to make different note types from Cloze Overlapper and make changes to Styling according to decks, but when I do that the shortcut Ctrl+Shift+C
does not work like it is intended ( {{c::}} instead of [[oc::]] Default cloze deletion format not the Cloze Overlapper one )
Any way to make solve this?
on 1624585967
Seems good.. but the order of the items being revealed is out of place? Is there something I'm missing here?
on 1624175000
thank you for your work
on 1623526235
on 1621662179
doesn't work
on 1621500688
I am very grateful for this work! It works fine! Me and my friend were pondering, how we would bring the original addon to work again, since we don't know much about coding. :D
on 1619241348
on 1617665244
This addon is incredible. Make sure to watch the video on YouTube to understand how to use this addon properly and get the most out of it. You won't be disappointed. In short, what used to take me 20-30 minutes (creating list cards) takes me a couple minutes or less, sometimes even seconds. I'm not kidding. This addon is THAT good at making list cards. I feel like this will also help on the backend with memorization compared to my old methods of creating list cards. Download!
on 1616925013
It's so good.
but 'remove cloze marker' is not working in 2.1.42.
in 2.1.42., it remove all selection contents, not remove just only cloze marker.
on 1616520051
Thank you
on 1616454304
Very good!!! Best complement! Thanks!
on 1615602727
This "kinda' works. I have "override sibling spacing" checked for both new and review cards, but it only works for new cards. Cloze overlaps in the review stage don't appear sequentially, which is what you want if you're trying to remember something like a metabolic pathway. This is super frustrating, and I'm honestly thinking about downgrading to 2.0 just because of this.
on 1615596261
great tool
on 1614073113
Thanks so much for this! Had to restart once then it worked like a charm! Using anki version 2.1.35 (84dcaa86)
Lets give a thumbs up, this addon needs to be more visible! :D
on 1613772112
OMG. I've been waiting for this for so long! Thank you so much!
on 1612469245
Thank you! I recently upgraded from 2.1.22 to 2.1.35. The Overlapper that I downloaded long ago from Patreon didn't work anymore, but this one here does.

edit: Anki throws an error when I rename the "Original" field.
on 1611910940
The add-on seems to be working properly! Thank you very much! However while trying to change some options, after pressing okay I get this message:

An error occurred. Please start Anki while holding down the shift key, which will temporarily disable the add-ons you have installed.
If the issue only occurs when add-ons are enabled, please use the Tools>Add-ons menu item to disable some add-ons and restart Anki, repeat until you discover the add-on that is causing the problem.
When you've discovered the add-on that is causing the problem, please report the issue on the add-ons section of our support site.
Debug info:
Anki 2.1.35 (84dcaa86) Python 3.8.0 Qt 5.14.2 PyQt 5.14.2
Platform: Windows 10
Flags: frz=True ao=True sv=1
Add-ons, last update check: 2021-01-28 19:03:43

Caught exception:
Traceback (most recent call last):
File "C:\Users\AppData\Roaming\Anki2\addons21\109531687\gui\options_global.py", line 107, in onAccept
File "C:\Users\AppData\Roaming\Anki2\addons21\109531687\libaddon\anki\configmanager.py", line 229, in save
File "C:\Users\AppData\Roaming\Anki2\addons21\109531687\libaddon\anki\configmanager.py", line 512, in _saveSynced
self._getStorageObj("synced")[self._conf_key] = config
File "anki\config.py", line 64, in __setitem__
File "anki\config.py", line 40, in set
orjson.JSONEncodeError: Type is not JSON serializable: WrappedDict

I don't understand the meaning but the flagged options DON'T WORK
on 1611861704
It works! anki 2.1.35
on 1611591699
on 1611324813
Works okay
on 1610479577