toggl-cli icon indicating copy to clipboard operation
toggl-cli copied to clipboard

Flag to quickly do `toggl stop -p $TIME; toggl start -s $TIME ...`

Open StanczakDominik opened this issue 1 year ago • 3 comments

I find myself doing the following often:

# it's 7:00
>>> toggl start "Entry 1"
# at 8:00 I realize I switched to entry 2 at 7:30
>>> toggl start -s 7:30 "Entry 2"

but then I have Entry 1 ranging from 7:00 to 8:00 and Entry 2 from 7:30 to 8:00, with the latter span being covered twice. So instead I sidestep this with:

>>> toggl stop -p 7:30
>>> toggl start -s 7:30 "Entry 2"

but it'd be quicker to have a another flag in start:

>>> toggl start -ps 7:30 "Entry 2"

that would call stop first at the given time. I took -p from toggl stop, but I'm open to ideas on this.

I'd be happy to implement this, but I wanted to discuss it first!


By the way @AuHau, I noticed in the recent issues that you mentioned you've been struggling to find time to work on this tool recently. As it's an incredibly useful one for me, I'd like to offer my help as a maintainer 🙂

StanczakDominik avatar Jan 03 '23 07:01 StanczakDominik