Number the exercise list and add jump-to (wave 3, F5)

list-exercises prints 1-based right-aligned numbers. In watch mode, l lists the exercises and then asks Jump to (name or number, empty stays): a name or catalogue number switches to that exercise (revealed hints reset, :current saved), an empty answer or EOF stays, and unknown names or out-of-range numbers show a notice.

No new CLI command: run [name] already selects the exercise for
watch mode; usage and README note it.
This commit is contained in:
venomade committed 2026-11-22 10:02:00 +00:00
1 parent dc669376bf
commit 77843402fa
2 files changed
+52 -15

No files matched your search

+2 -2
View File
@@ -64,7 +64,7 @@ Keys in watch mode (each key is a line: type it, then press ENTER):
| n | move to the next pending exercise |
| h | reveal the next hint paragraph (stays pinned) |
| r | rerun the current exercise |
| l | list all exercises |
| l | list exercises, then jump by name or number |
| x | reset the current exercise (asks y/n) |
| q | save progress and quit |
@@ -78,7 +78,7 @@ solved.
```sh
./lisplings watch the current exercise (the default)
./lisplings run [name] run one exercise and print its output
./lisplings run [name] run one exercise; also selects it as current
./lisplings hint [name] print every hint paragraph, numbered
./lisplings list [pending|done|all]
./lisplings reset <name> restore an exercise to its pristine state