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 quitting pomodoro mode, output total time spent working and resting #16

Merged
merged 3 commits into from
Aug 5, 2024

Conversation

fweisenhorn
Copy link
Contributor

@fweisenhorn fweisenhorn commented Aug 1, 2024

Hello!
I implemented the request from #15 , specifically the second version proposed there: after the timer is closed, the pomodoro mode optionally displays the total time spent working and on break, respectively.
It measures the time during which the pomodoro timer advances, i.e. excess time is counted, skips and pauses are not counted (neither the time spent in the skip ui-mode).

To use it, invoke it with th '-e' flag, e.g. "porsmo pomodoro -e short"; I was unfamiliar with clap before today, this what I came up with, although I am not overly happy with it.

(This is my first ever pull request to a public repo; feel free to tell me where I could do better.)

@ColorCookie-dev ColorCookie-dev merged commit e46ccb7 into ColorCookie-dev:main Aug 5, 2024
@ColorCookie-dev
Copy link
Owner

Looked good, however that [Duration; 2] could have been better named

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

Successfully merging this pull request may close these issues.

2 participants