Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ratatui #1920

Closed
mo8it opened this issue Mar 26, 2024 · 1 comment · Fixed by #1942
Closed

Ratatui #1920

mo8it opened this issue Mar 26, 2024 · 1 comment · Fixed by #1942
Assignees
Milestone

Comments

@mo8it
Copy link
Contributor

mo8it commented Mar 26, 2024

I would like to use Ratatui in Rustlings, especially for the watch mode.

Why

  • The current state of the watch mode is very rigid. For example, once you resize your terminal, your progress bar is broken.
  • The progress bar is often hidden and you need to scroll up to look at it. This is a problem because you need the information of the progress bar to know what exercise you need to start next. With Ratatui, we can make the progress bar always visible as a fixed widget at the top.
  • The kind of REPL in watch mode is hidden and not intuitive. For example, you only find out about the ability of typing hint if you read the whole message when you started the watch mode. And still then it is not intuitive that you can just type a command and receive some output because you normally don't do so when a program is spitting out some output. Instead, we can introduce shortcuts for the different commands in the watch mode and show them in the footer.
  • Offer a better UX for people that aren't very familiar with the terminal because they get a UI.
  • The ability of adding more features. For example, the list of all exercises with their status could be shown in an additional tab. Then we can offer the functionality of skipping exercises in this interactive exercises list. This is something that could have been very helpful during my course when a student falls behind a couple of exercises. They were not able to use the watch mode anymore.
  • Demonstrate the ability of building awesome TUIs in Rust :D

@shadows-withal what do you think? I would take care of the implementation and put it under a 6.0 milestone.

@mo8it mo8it self-assigned this Mar 30, 2024
@mo8it mo8it added this to the v6 milestone Mar 30, 2024
@mo8it mo8it linked a pull request Apr 7, 2024 that will close this issue
@mo8it
Copy link
Contributor Author

mo8it commented Apr 14, 2024

Done in #1942

@mo8it mo8it closed this as completed Apr 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant