u/Expensive_Quality739

▲ 6 r/AnkiAddonsDev+2 crossposts

I made an add-on for bulk clozing selected list items

Hey all, I made a small Anki add-on called Bulk Cloze Selected List Items.

It adds a toolbar button to the Anki editor that lets you select multiple lines and convert each line into a cloze deletion.

Example:

apple

banana

strawberry

becomes:

{{c1::apple}}

{{c1::banana}}

{{c1::strawberry}}

If the note already has an existing cloze, it uses the next cloze number. So if `{{c1::sample text}}` already exists, the selected list items become `{{c2::...}}`.

It also:

- skips blank lines

- strips common bullet/number prefixes

- has a `1+` toggle for incrementing cloze numbers per line

- works from the editor toolbar

AnkiWeb:

https://ankiweb.net/shared/info/702500540

Source:

https://github.com/Austin-Chiappetta/bulk-cloze-selected-list-items

This is my first public Anki add-on, so feedback/bug reports are very welcome!

reddit.com
u/Expensive_Quality739 — 16 days ago