aboutsummaryrefslogtreecommitdiff
path: root/docs/design/task-review.org
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2026-06-24 06:47:07 -0400
committerCraig Jennings <c@cjennings.net>2026-06-24 06:47:07 -0400
commit060a938b9629b134b9110db4d1cbc99577ee5674 (patch)
tree0e240a6b44fce13fc8d33f019cef0fe8e01e4bbb /docs/design/task-review.org
parent0d87c80b3377e47b1ba56dc38e1f7162fd0ef9d7 (diff)
downloadrulesets-060a938b9629b134b9110db4d1cbc99577ee5674.tar.gz
rulesets-060a938b9629b134b9110db4d1cbc99577ee5674.zip
fix(flashcard): name the Anki deck from #+TITLE, not the filename
flashcard-to-anki.py's default_deck_name returned the input basename, so a deck built through flashcard-sync (which passes no --deck) was named after the file slug (refutation-drill) instead of the curated #+TITLE the phone deck should read (Refutations). flashcard-review.org already documented the #+TITLE behavior, and the script never matched it. default_deck_name now scans for a #+TITLE line (case-insensitive, trimmed) and falls back to the basename when there's none. Five new tests cover title-drives-name, trimming, case-insensitivity, and the two basename fallbacks. The two old tests that asserted basename-always are replaced. The pre-staged script and test (validated 2026-06-21) applied cleanly red-to-green; their redundant copies are removed and the rationale doc kept. Migration: deck IDs derive from the name, so decks previously built without --deck land as new decks on the next import. Old basename-named decks keep their history and can be deleted by hand. Claude-Session: https://claude.ai/code/session_017PtX1nt1rtYVATuzmzBS4f
Diffstat (limited to 'docs/design/task-review.org')
0 files changed, 0 insertions, 0 deletions