From 27385697fbf60e3319a598bb509197f5579c9405 Mon Sep 17 00:00:00 2001 From: Craig Jennings Date: Sun, 31 May 2026 10:46:18 -0500 Subject: feat: add statistics dashboard CSV export and docs org-drill-statistics-export-csv, bound to e in the dashboard and now implemented, writes three files into a chosen directory honoring the active scope and range: sessions.csv (one row per recorded session), cards.csv (one row per drill card in scope with its scheduling properties and computed status), and daily.csv (per-day reviews, passes, fails, pass percent, and duration). Fields are quoted per RFC 4180 by a small csv-quote helper, since csv-mode isn't a dependency. This is the dashboard's last piece, step 3 of the spec. The row builders for the three views are pure and unit-tested with deterministic fixtures, and csv-quote covers the comma, quote, and newline cases. I documented the dashboard and the export in org-drill.org (a new section with the keymap, the CSV columns, and the settings table) and added a feature bullet to the README. I also removed the now-redundant declare-function forward reference for export-csv. It named this file as the source, so once the real defun landed the byte-compiler counted the function twice and warned. --- README.org | 1 + 1 file changed, 1 insertion(+) (limited to 'README.org') diff --git a/README.org b/README.org index 5ce0229..0f928cf 100644 --- a/README.org +++ b/README.org @@ -46,6 +46,7 @@ If you've been hitting any of those, this fork should help. - Cloze deletion with optional hints (=[hidden||hint]=) - Multi-file decks via Org's agenda-files mechanism, or per-directory scope - Session controls: maximum duration, maximum items per session, leech detection +- Statistics dashboard (=M-x org-drill-statistics=): overview, daily/weekly trends with sparklines, quality histogram, a needs-attention view (leeches, long-overdue, forgotten-new), and a 7-day forecast, with CSV export - LaTeX preview, inline images, and the rest of the Org rendering machinery just work inside drill sessions ** Installation -- cgit v1.2.3