Bulk Cloze Selected List Items

AnkiWeb addon 702500540

Converts selected editor lines into bulk cloze deletions, skipping blanks, stripping bullet prefixes, using the next available cloze number, and offering a 1+ toggle for per-line numbering.
AI-generated summary; may contain mistakes.

card-creationcloze

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
0 (👍 0 · 👎 0)
Updated
2026-05-24
Anki versions
<=2.1.26
License
Not found (this does not mean that the addon has no license)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-05-25 (160 days before the snapshot).
  • Commits in the last year: 15.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.26–2026-05-24
History across monthly snapshots

Loading…

Similar addons

Cloze List Items

Adds an editor button that wraps list items in the current field with sequential cloze deletions, with a configurable Alt+Shift+L shortcut and an option to target only selected items.

shortcutscloze

2 votes 34% approval 👍 2 · 👎 0 Anki 23.12.1~ Updated 2024-03-05
No-Sync Note Converter

Converts Anki notes between types without triggering a full sync, offering field mapping, presets, review-history preservation, deck/tag retention, browser and reviewer conversion, and one-step undo.

schedulingnote-managementcard-templatescloze

1 votes 21% approval 👍 1 · 👎 0 ⭐ 1 Anki 2.1.1~ Updated 2026-09-02
Quizify Tool

Renders Markdown in Anki cards as interactive question types—fill-in-the-blank, multiple choice, reveal, annotations, collapsible/tabbed blocks, recitation, audio, code and math—with editor tools and bulk Markdown import.

review-flowformattingcard-templatesclozequizmobile-compatible

2 votes 34% approval 👍 2 · 👎 0 ⭐ 171 Anki 2.1.1~ Updated 2025-02-16

Description

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

README

Bulk Cloze Selected List Items

Anki add-on for converting selected editor lines into cloze deletions.

Install from AnkiWeb: https://ankiweb.net/shared/info/702500540

Install

  1. Copy this folder into Anki's addons21 directory, or symlink it there.
  2. Restart Anki.
  3. Open the Add window or Browser editor.

Anki 2.1.26 or newer is expected. When installed locally, Anki should display the add-on as Bulk Cloze Selected List Items.

Usage

Select multiple lines inside an editor field, then click the Bulk Cloze toolbar button.

Example selected text:

apple
banana
strawberry

Becomes:

{{c1::apple}}
{{c1::banana}}
{{c1::strawberry}}

By default, all selected lines share the same cloze number.

Blank lines are skipped. Common bullet prefixes are stripped, including - , * , • , and numbered prefixes like 1. .

If the current note already contains clozes, the add-on uses the next cloze number. For example, if the note already contains {{c1::sample text}}, the selected list items become {{c2::...}}.

Use the 1+ toolbar button to toggle per-line numbering while editing. When per-line numbering is enabled, this selected text:

apple
banana
strawberry

becomes:

{{c1::apple}}
{{c2::banana}}
{{c3::strawberry}}

If the note already contains {{c1::sample text}}, the same selected list starts at c2 and becomes c2, c3, c4.

Test

  1. Create or edit a cloze note.
  2. Paste several lines into one field.
  3. Select those lines.
  4. Use the toolbar button.
  5. Confirm each nonblank line is wrapped as {{c1::text}}.
  6. Try the action with no selected text and confirm Anki shows a tooltip asking you to select list items first.
  7. Add {{c1::sample text}} earlier in the same field, then select a plain list below it and confirm the list items are wrapped as {{c2::text}}.
  8. Click the 1+ toggle, select a plain list, and confirm the cloze numbers increment per selected line.

Configuration

The add-on exposes these config values:

{
  "cloze_number": 1,
  "increment_per_line": false
}

cloze_number is the minimum/default cloze number. Existing clozes in the current note still take precedence when the add-on chooses the next number.

increment_per_line controls whether each selected line gets the same cloze number or increasing cloze numbers. The 1+ editor toggle updates this setting without opening the add-on config page.