lk/data/taskwarrior/timew.md

173 lines
2.1 KiB
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "timew"
2022-01-26 22:35:07 +00:00
tags: [ "Documentation", "Data" ]
2022-01-16 18:20:39 +00:00
---
2020-01-02 03:41:16 +00:00
# Summaries
2020-01-02 00:04:35 +00:00
Try:
```bash
timew summary :yesterday
```
2020-01-02 00:04:35 +00:00
You can also use :week, :lastweek, :month, :quarter, :year, or a range such as:
```bash
timew summary today to tomorrow
timew today - tomorrow
2018-10-15T06:00 - 2018-10-17T06:00
```
2020-01-02 00:04:35 +00:00
Each of these can gain with the :ids tag.
# Basics
```bash
timew start
timew stop
timew continue
timew summary
timew tags
```
2020-01-02 00:04:35 +00:00
And add ids with:
```bash
timew summary :ids
timew track 10am - 1pm timewarrior
timew track 1pm for 2h walk
```
2020-01-02 00:04:35 +00:00
# Adjusting Timewarrior
First get ids.
```bash
timew summary :ids
```
2020-01-02 00:04:35 +00:00
Then if we're looking at task @2:
```bash
timew move @2 12:00
timew lengthen @2 3mins
```
2020-01-02 00:04:35 +00:00
```bash
time shorten @2 40mins
```
2020-01-02 00:04:35 +00:00
# Forgetting
```bash
timew start 1h ago @4
```
2020-01-02 00:04:35 +00:00
Or if your action actually had a break:
```bash
timew split @8
```
2020-01-02 00:04:35 +00:00
Or maybe not?
```bash
timew join @4 @8
timew @8 delete
```
2020-01-02 00:04:35 +00:00
Start at previous time
```bash
timew start 3pm 'Read chapter 12'
timew start 90mins ago 'Read chapter 12'
```
2020-01-02 00:04:35 +00:00
Cancel currently tracked time.
```bash
timew cancel
```
2020-01-02 00:04:35 +00:00
# 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
2020-01-02 03:41:16 +00:00
> os.system('timew start ' + combined + ' :yes')
2020-01-02 00:04:35 +00:00
with:
> os.system('timew start ' + combined.decode() + ' :yes')
2020-01-02 00:04:35 +00:00
and
> os.system('timew stop ' + combined + ' :yes')
2020-01-02 00:04:35 +00:00
with:
> os.system('timew stop ' + combined.decode() + ' :yes')
2020-01-02 00:04:35 +00:00
# Fixing Errors
```bash
curl -O https://taskwarrior.org/download/timew-dbcorrection.py
```
2020-01-02 00:04:35 +00:00
```bash
python timew-dbcorrections.py
```
2020-01-02 00:04:35 +00:00
2022-01-26 22:35:07 +00:00
# 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](task.md).