samg / timetrap

Simple command line timetracker
http://rubygems.org/gems/timetrap
Other
1.48k stars 116 forks source link

undo `t out` #88

Closed milesmatthias closed 10 years ago

milesmatthias commented 10 years ago

accidentally checked out or realized I have more to do.

I don't think there's a way to undo a time out right now.

I'll add a PR in a bit unless someone else beats me to it or @samg thinks this idea is silly.

vlcinsky commented 10 years ago

@milesmatthias You shall be able editing last entry end time. Something like

$ t in get focused on it

...work

$ t out

...oh, now the idea comes, continuing (leaving last task being checked out) ..and finally, all is done and we extend the last task till now:

$ t e -e now

and you can repeat extending the last task repeatedly.

milesmatthias commented 10 years ago

Ah, forgot about using edit. Thanks @vlcinsky!

  * edit - Alter an entry's note, start, or end time. Defaults to the active
    entry. Defaults to the last entry to be checked out of if no entry is active.
    usage: t edit [--id ID] [--start TIME] [--end TIME] [--append] [NOTES]
    -i, --id <id:i>           Alter entry with id <id> instead of the running entry
    -s, --start <time:qs>     Change the start time to <time>
    -e, --end <time:qs>       Change the end time to <time>
    -z, --append              Append to the current note instead of replacing it
                                the delimiter between appended notes is
                                configurable (see configure)
    -m, --move <sheet>        Move to another sheet