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

On "Quit (Q)" output how time was spent #15

Open
juangarces opened this issue Apr 30, 2024 · 4 comments
Open

On "Quit (Q)" output how time was spent #15

juangarces opened this issue Apr 30, 2024 · 4 comments

Comments

@juangarces
Copy link

Hello, I'd love to see the time I worked and I was on breaks. Something like:

"You have worked 4h 35m and rested 25m. Good job!"

Let me know what you think. Thank you for this amazing app.

@ColorCookie-dev
Copy link
Owner

Thanks for the input.
Yeah, the feature sounds nice. Though, how should it be implemented?
Should it also consider the excess time for Work and break, or not?
Should it consider the time spent during a work session, if you exit midway?
How should it behave if you exit from break, should it count excess time? Many people would forget the timer was running and counting excess and come back a day later to find the excess counter having more than a day.

So, how do you think this feature should be implemented?

@juangarces
Copy link
Author

Very good points.

I thought about two options, first is not ideal but I think would work just fine, at least in my opinion. The second would be more useful but probably app would have to keep data temporary somewhere.

Option "good enough":
I guess that the simplest way of implement it would be enough. For example, a custom timer porsmo pomodoro custom 35m 5m 10m would calculate numbers of session + current time working/break:

35m * 4 sessions + 12m of current time = 152m of work
5m * 3 short breaks + 10m long break (or current break time) = 25m resting

Option "too good":
As a user, I would prefer output to reflect what I have done all day. All sessions with excess time included, that would tell "the truth" of my behavior. If I forgot timer running, so show me as it is.

I hope these little inputs would be helpful somehow.

@ColorCookie-dev
Copy link
Owner

I did think about the first possibility, very easily doable, but not accurate. Thus I think I will try to implement the 2nd option.
Though currently, I'm unable to work on any project, this may take a month. I'll see what I can do.

@juangarces
Copy link
Author

I wish I could help you in anyway. I've never touch Rust and I've heard it has a long learning curve. Though I'm keen on it.

Keep it up!

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

2 participants