diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-31 10:46:18 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-31 10:46:18 -0500 |
| commit | 27385697fbf60e3319a598bb509197f5579c9405 (patch) | |
| tree | bf09d7f0fc32701794cdc29ef91deecf5bc96f10 /scripts | |
| parent | 26cc4472dea261a1ad13fbee8fb6a91b019f77bb (diff) | |
| download | org-drill-27385697fbf60e3319a598bb509197f5579c9405.tar.gz org-drill-27385697fbf60e3319a598bb509197f5579c9405.zip | |
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.
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
