lakoliu / Furtherance

Track your time without being tracked
GNU General Public License v3.0
243 stars 24 forks source link

Add pause option #104

Open machitgarha opened 1 year ago

machitgarha commented 1 year ago

When working in Pomodoro, I sometimes want to pause the timer without being reset. Adding a pause button would help me in this case.

P.S.: Thanks for this good and simple application!

lakoliu commented 1 year ago

Thanks for the kind words, and for taking the time to make a suggestion. I think this is a good idea when using Furtherance as a pomodoro timer. To prevent clutter for users who may not need it, I think it would be good to be able to enable and disable the pause button in the settings. I will get to work on this as soon as I get a chance 🙂

lakoliu commented 1 year ago

I've looked into this a lot, and unfortunately it's just not going to be possible (at least, I don't believe it is at this time) due to the way Furtherance stores data. All tasks are stored using a start and stop time, and that's how the total time is calculated. A pause button throws a wrench into that since the correct time can no longer be calculated if it was paused for any length of time (since only the start and stop times are saved). Changing this in any way would screw up current databases across platforms.

Sorry for the bad news, but I'm going to have to close this as not possible for now. I'll keep it in mind though in case I can come up with a solution.

machitgarha commented 11 months ago

A simple solution would be, if the pause button is pressed, then a new record is added to the database, but in UI the remaining time is still there. If the button (changed to a resume button) is pressed again, a new record starts to be created, and so on.

Isn't this possible?

lakoliu commented 11 months ago

That's a really good idea, I hadn't thought of that. The only issue would be that it would be stored as two separate tasks, but I guess that doesn't really matter. I will go ahead and re-open this and get to work on it. Thanks!