AnkiWeb
- Rating
- 0 (π 0 Β· π 0)
- Updated
- 2025-11-27
- Anki versions
- 25.09~
- Description language
- en
AnkiWeb addon 475579924
Automatically saves Add Cards window content and tags every few seconds, restoring per-note-type drafts after crashes, power loss, or accidental closure.
Open on AnkiWeb GitHub Ask about alternatives
stale
| Min Anki | Max Anki | Updated |
|---|---|---|
| 2.1.6 | 25.09+ | 2025-11-27 |
Loadingβ¦
Provides tabbed rich-text notebooks in Anki, with autosave, manual save, search, images, lists, and note files stored in the Anki profile.
Keeps a local timeline of Anki note and note-type changes with diffs, snapshots, AβB comparison, pinning, and undoable partial restores.
Pops up a simple draft window while reviewing cards to write answers, keeps content when flipping, and resets for the next card.
Opens independent Browser windows for side-by-side deck work, with per-window layout/search memory, tiling, session restore, and copyable field content.
Automatically renders Markdown into styled HTML when fields lose focus, restoring raw Markdown on refocus, with syntax highlighting and official Anki hooks.
Saves every minute instead of every five (configurable) and adds a File menu save-now button, though recent Anki versions usually make it unnecessary.
This add-on automatically saves the contents of the Add Cards window every few seconds, so you never lose work if:
If you reopen the Add window with the same note type, your draft will be restored automatically.
Each note type (Basic, Cloze, Custom types) stores its own independent draft.
last_saved timestamp.addons21/
add_cards_autosave/
__init__.py
README.md
__init__.py inside that folder.Inside __init__.py, you can customize:
AUTOSAVE_INTERVAL_MS = 5000 # 5 seconds
MAX_AGE_SECONDS = 48 * 60 * 60 # 48 hours
Drafts are saved in:
<your Anki profile folder>/add_cards_autosave.json
Each draft is stored by note type:
{
"Basic": {
"last_saved": 1732690000.123,
"fields": ["Front", "Back"],
"tags": ["tag1"]
},
"Cloze": { ... }
}
A draft is restored only if all are true:
MAX_AGE_SECONDSOtherwise, the draft is ignored.
A draft is removed only when a note is successfully added or discarded (Add window closed manually).
Drafts are not deleted when:
This ensures your work is always recoverable.
If you find a conflict with another add-on, open an issue or report the add-on name.
The Add Cards window does not autosave by default. If youβve ever:
β¦this add-on solves that forever. It gives Anki a βdraft safety netβ that many users wish it had built in.
Q: Will autosaving every 5 seconds slow down my PC? A: No. Each autosave writes a tiny JSON file (1β5 KB). CPU and disk impact are effectively zero.
Q: Does it autosave images / LaTeX? A: It autosaves whatever is in the fields β including image references and LaTeX code.
Q: Does it work with multi-line fields / HTML? A: Yes, everything is stored as plain text in JSON.
Q: How do I test the add-on? A: Write notes in the Add Card Window, next open task manager, then right-click on the Python processes running under "Apps" and click "End Task", after that relaunch Anki, and finally reopen the Add cards window. The draft should be restored.
Test scenarios to confirm full behavior:
| Test | Expected result |
|---|---|
| Close Add without saving | Draft preserved |
| Crash Anki | Draft preserved |
| Power loss | Draft preserved |
| Change note type | Draft not restored |
| Add note successfully | Draft deleted |
| Autorestore after restart | Fields restored automatically |
Feel free to open an issue or request enhancements. This add-on was designed to prevent one of the most common sources of lost work in Anki.