diff options
| author | Nahor <nahor.j+github@gmail.com> | 2024-10-02 13:40:32 -0700 |
|---|---|---|
| committer | Nahor <nahor.j+github@gmail.com> | 2024-10-02 13:40:32 -0700 |
| commit | c52867eb8bf69f67e702b87dd2bf12125aa7ab12 (patch) | |
| tree | 8bd8d22b1de936b279063e0a43c1c740708a7c15 /src/watch/terminal_event.rs | |
| parent | 26fd97a209d936755aa653ee0110d17d27e47306 (diff) | |
Add command to check all the exercises
This allows for skipping repeating "next" when multiple exercises
are done at once, or when earlier exercises have been updated/changed
(and thus must be redone) while still working of the whole set (i.e.
the final check_all is not yet available to flag those undone exercises)
Diffstat (limited to 'src/watch/terminal_event.rs')
| -rw-r--r-- | src/watch/terminal_event.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/watch/terminal_event.rs b/src/watch/terminal_event.rs index 1ed681d..48411db 100644 --- a/src/watch/terminal_event.rs +++ b/src/watch/terminal_event.rs @@ -11,6 +11,7 @@ pub enum InputEvent { Run, Hint, List, + CheckAll, Reset, Quit, } @@ -37,6 +38,7 @@ pub fn terminal_event_handler( KeyCode::Char('r') if manual_run => InputEvent::Run, KeyCode::Char('h') => InputEvent::Hint, KeyCode::Char('l') => break WatchEvent::Input(InputEvent::List), + KeyCode::Char('c') => InputEvent::CheckAll, KeyCode::Char('x') => { if sender.send(WatchEvent::Input(InputEvent::Reset)).is_err() { return; |
