Defragment Card Positions

AnkiWeb addon 1939524919

Renumbers new card positions to close gaps while preserving duplicate positions, resets the position counter, and offers a preview, confirmation, undo, and optional shortcut.
AI-generated summary; may contain mistakes.

schedulingreview-flow

Open on AnkiWeb Find alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-09-04
Anki versions
2.1.1~
License
MIT (from the license file in the package)
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-09-04 (58 days before the snapshot).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.1+2026-09-04
History across monthly snapshots

Loading…

Similar addons

Bar Chase

Adds a review-screen top bar with a configurable repeating countdown timer, left and right counters, and a color-changing progress bar.

review-flowprogress-trackingtimer

6 votes 61% approval πŸ‘ 6 Β· πŸ‘Ž 0 ⭐ 2 Anki 23.10~ Updated 2023-10-28
Preview Learning

Enables previewing cards through tag-based named previews, search filters and batches, revealing answers and releasing cards without altering scheduling or status.

review-flowtaggingshortcuts

2 votes 34% approval πŸ‘ 2 Β· πŸ‘Ž 0 Anki 2.1.1~ Updated 2026-10-10
Pomodoro Bar

Times Pomodoro study sessions with fillable progress and review-counter bars, color-coded answer segments, optional rest periods, pause/resume, notices, and configurable goals, colors, and screen controls.

review-flowprogress-trackingtimer

1 votes 21% approval πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-10-06
Browser search result highlighter

Highlights browser search matches within notes, including field code, tags, regex and overlapping matches, with auto-scroll, scrollbar indicators and customizable settings.

search

18 votes 82% approval πŸ‘ 18 Β· πŸ‘Ž 0 ⭐ 6 Anki 24.11~ Updated 2026-06-06

Description

Closes the gaps between the positions of your new cards and resets Anki's position counter (nextPos) to the value after the last card. Turns positions like 1, 2, 3, 7, 9, 9, 12 into 1, 2, 3, 4, 5, 5, 6.

Key rule: equal positions stay equal. Distinct positions are renumbered gap-free, while cards that shared a position keep sharing one afterwards. Duplicates are preserved, not split apart.

Usage

  • Tools β†’ "Kartenpositionen defragmentieren…"
  • Shows a summary (new cards, distinct positions, affected cards, new counter) and asks before changing anything
  • One undo step β€” fully reversible with Undo
  • Optional keyboard shortcut (configurable)

Behaviour

  • Only new cards are touched; review/learning cards are never modified
  • Stable order by (position, card id) β€” your learning order is kept
  • Only cards whose position actually changes are written (sync-friendly)
  • Changes card positions and the nextPos counter only β€” never fields or notes

Developed for modern Anki (Qt6).

Source & issues https://github.com/david-becher/anki-defragment-positions

Licensed under the MIT License.