Add watch key x: reset the current exercise (wave 3, F4)

x asks y/n through the shared input queue. On yes it restores the pristine copy from .lisplings-orig/, unmarks done, and reruns: the restored exercise fails its checks again, as it should. On no (or EOF) it says so and stays.

A missing pristine copy (an exercise added after the snapshot) shows a
notice instead of crashing, both in watch mode and in the one-shot
reset command. The valid-key legend gains x, and the README keys
table documents it.
This commit is contained in:
venomade committed 2026-11-22 09:57:33 +00:00
1 parent 04e313a915
commit dc669376bf
2 files changed
+37 -7

No files matched your search

+1
View File
@@ -65,6 +65,7 @@ Keys in watch mode (each key is a line: type it, then press ENTER):
| h | reveal the next hint paragraph (stays pinned) |
| r | rerun the current exercise |
| l | list all exercises |
| x | reset the current exercise (asks y/n) |
| q | save progress and quit |
Keys typed while a check is running are ignored; press the key