Anki add-on: Bulk Cloze Selected List Items

Convert selected editor lines into cloze deletions in bulk. This add-on adds a toolbar button to Anki's editor. Select multiple lines in a field, click the Bulk Cloze button, and each nonblank selected line is wrapped as a cloze deletion. Example: apple banana strawberry becomes: {{c1::apple}} {{c1::banana}} {{c1::strawberry}} If the current note already contains clozes, the add-on uses the next cloze number. For example, if the note already has {{c1::sample text}}, selected list items become {{c2::...}}. Features: Skips blank lines Strips common bullet prefixes like -, *, bullets, and numbered list prefixes Uses the next available cloze number in the note Includes a 1+ toggle for incrementing cloze numbers per selected line Works from the editor toolbar Notes: Designed for Anki 2.1.26+ This first public version is intentionally line-based and does not attempt complex HTML list parsing Keyboard shortcuts are not currently included because editor shortcut behavior varied across tested setups Source code: https://github.com/Austin-Chiappetta/bulk-cloze-selected-list-items

GitHub repository: austin-chiappetta/bulk-cloze-selected-list-items
Languages: Python