dkandalov / limited-wip

IntelliJ plugin to limit your work-in-progress
https://plugins.jetbrains.com/plugin/7655
111 stars 7 forks source link

Press "ok" before auto-reverting #48

Open felipemoran opened 2 years ago

felipemoran commented 2 years ago

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 commented 2 years ago

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 commented 1 year ago

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