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

suggestion to be able to reset one excercise. #2030

Open
DaQue opened this issue Jul 7, 2024 · 2 comments
Open

suggestion to be able to reset one excercise. #2030

DaQue opened this issue Jul 7, 2024 · 2 comments

Comments

@DaQue
Copy link

DaQue commented Jul 7, 2024

When I am working on an exercise when I make lots of changes trying stuff that sometimes didn't work. I would suggest a way to reset the current exercise source code back to the original unmodified example added to the h:hint / l:list / q:quit ? options. Maybe /r:reset? .

@mo8it
Copy link
Contributor

mo8it commented Jul 7, 2024

I thought about that but also didn't want people to reset a file by mistake. This is especially a problem on Windows where you don't need to press ENTER after entering something in the prompt. Entering l then r is more explicit for me and can't easily happen by mistake.

But we could also add r:reset with a confirmation. What do you think?

@matthewjnield
Copy link
Contributor

I was going to request the same feature, but after learning about the ability to reset exercises from the list menu after pressing l mentioned above, that approach has been sufficient for me.

I still think adding an r command that resets the current exercise to the main menu would be a good idea, and that a confirmation step should be required, such as pressing r again, or typing the word "reset".

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

No branches or pull requests

3 participants