timewarrior

Summaries

Try:

1timew summary :yesterday
bash

You can also use :week, :lastweek, :month, :quarter, :year, or a range such as:

1timew summary today to tomorrow
2timew today - tomorrow
32018-10-15T06:00 - 2018-10-17T06:00
bash

Each of these can gain with the :ids tag.

Basics

1timew start
2timew stop
3timew continue
4timew summary
5timew tags
bash

And add ids with:

1timew summary :ids
2timew track 10am - 1pm timewarrior
3timew track 1pm for 2h walk
bash

Adjusting Timewarrior

First get ids.

1timew summary :ids
bash

Then if we're looking at task @2:

1timew move @2 12:00
2timew lengthen @2 3mins
bash
1time shorten @2 40mins
bash

Forgetting

1timew start 1h ago @4
bash

Or if your action actually had a break:

1timew split @8
bash

Or maybe not?

1timew join @4 @8
2timew @8 delete
bash

Start at previous time

1timew start 3pm 'Read chapter 12'
2timew start 90mins ago 'Read chapter 12'
bash

Cancel currently tracked time.

1timew cancel
bash

Backdated tracking

timew untag @3

Hints

  • :quit - for automation

  • :yes

  • :color

  • :fill - expand the time to fill out available time

  • :adjust - automatically correct overlaps

  • :ids - show id numbers

Times

  • :yesterday

  • :day

  • :week

  • :month

  • :quarter

  • :lastweek

  • :lastmonth

  • :lastquarter

  • :lastyear

Mistakes

task end.after:2015-05-01 and end.before:2015-05-31 completed

task end.after:today-1wk completed

Errors with Python3

Replace

os.system('timew start ' + combined + ' :yes')

with:

os.system('timew start ' + combined.decode() + ' :yes')

and

os.system('timew stop ' + combined + ' :yes')

with:

os.system('timew stop ' + combined.decode() + ' :yes')

Fixing Errors

1curl -O https://taskwarrior.org/download/timew-dbcorrection.py
bash
1python timew-dbcorrections.py
bash

Setup

With taskwarrior installed as well, locate on-modify-time, then add it to ~/.task/hooks and make it executable. This will track the time of any tasks used with taskwarrior.