diff options
| author | mo8it <mo8it@proton.me> | 2024-04-10 14:29:31 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-04-10 14:29:31 +0200 |
| commit | a59acf88354c8dfba301e59173653bc9a5f4bfb2 (patch) | |
| tree | 2fb638b88b184c154b18c72179df16363d60d548 /src/watch | |
| parent | 62e92476e6dad1fc191fd666eae2fccb263f5ff0 (diff) | |
Show the current exercise path
Diffstat (limited to 'src/watch')
| -rw-r--r-- | src/watch/state.rs | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/watch/state.rs b/src/watch/state.rs index 751285f..da5ac3d 100644 --- a/src/watch/state.rs +++ b/src/watch/state.rs @@ -149,6 +149,12 @@ You can keep working on this exercise or jump into the next one by removing the let progress_bar = progress_bar(self.progress, self.exercises.len() as u16, line_width)?; self.writer.write_all(progress_bar.as_bytes())?; + self.writer.write_all(b"Current exercise: ")?; + self.writer.write_fmt(format_args!( + "{}", + self.exercise.path.to_string_lossy().bold() + ))?; + self.show_prompt()?; Ok(()) |
