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

Press "ok" before auto-reverting #48

Open
felipemoran opened this issue Nov 14, 2022 · 2 comments
Open

Press "ok" before auto-reverting #48

felipemoran opened this issue Nov 14, 2022 · 2 comments

Comments

@felipemoran
Copy link

Hi all,

First of all, thanks for this amazing tool! This is exactly what I was looking for.

I've only started applying this idea of only keeping changes to X minutes before reverting, so I'm still learning and it can be frustrating at times when you're almost done with something or something interrupted you and you forgot to stop the timer and you realize all the changes are gone.

I would very much appreciate if there was some sort of (opt-in) confirmation prompt before reverting the code. Then, either restart the timer (potentially only one more time before reverting without the prompt) or use shorter timers (eg 5 min instead of 15) as many times as needed prompting for the revert at the end of each one.

I understand this goes in the opposite direction of the technique and plugin, but as a beginner (and especially when debugging something complex), this would be of immense help!

Thanks and congrats again for the tool!

@dkandalov
Copy link
Owner

Hi. Thank you!

The idea of more opportunities to stop the revert sounds good to me. Not sure I might actually implement sometime soon though 😐

I think most of the time it should be possible to undo the revert in the Main Menu -> Edit -> Undo or get the state of the project via IDE local history. Also I personally wouldn't use auto-revert for debugging something complex. The ideal approach would be to make it simpler in small steps. Or debug it the old-school way 🙈

@felipemoran
Copy link
Author

Sure, no problem! Thanks for the suggestion, using local history actually isn't that much of a hassle as I thought it would be.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants