lk/data/taskwarrior/task.md

142 lines
1.8 KiB
Markdown
Raw Normal View History

2022-01-16 18:20:39 +00:00
---
title: "task"
2022-01-26 22:35:07 +00:00
tags: [ "Documentation", "Organization" ]
2022-01-16 18:20:39 +00:00
---
2022-01-26 22:35:07 +00:00
Set up the configuration file:
```bash
task
```
2022-01-26 22:35:07 +00:00
Add a task:
```bash
task add update linux
```
2022-01-26 22:35:07 +00:00
See which task is next:
```bash
task next
```
2022-01-26 22:35:07 +00:00
Note the id number.
Mark a task as started:
```bash
task start 1
```
2022-01-26 22:35:07 +00:00
Once finished:
```bash
task 1 done
```
2022-01-26 22:35:07 +00:00
# Projects
Add a project:
```bash
task add project:house buy potted plant
task add proj:house.repair buy screwdriver
task add proj:house.repair buy shelf brackets
task add pro:house.paint buy white paint
task add pro:house.paint buy red paint
task add pro:house.paint buy black paint
task add pro:house.paint buy brushes
```
2022-01-26 22:35:07 +00:00
## Summary
```bash
task pro:house sum
```
2022-01-26 22:35:07 +00:00
```bash
task burndown.daily pro:house
```
2022-01-26 22:35:07 +00:00
The summaries will show how fast a project is being completed, and when you can expect it to finish at the present rate.
# Tags
```bash
task add +buy toothbrush
```
2022-01-26 22:35:07 +00:00
You can then see only tasks which involve buying something with:
```bash
task +buy
```
2022-01-26 22:35:07 +00:00
2020-01-02 00:04:35 +00:00
# Contexts
Set three contexts by their tags:
```bash
task context define work +sa or +hr
```
2020-01-02 00:04:35 +00:00
```bash
task context define study +ed or +void or +rat
```
2020-01-02 00:04:35 +00:00
```bash
task context define home -sa -hr -ed -void -rat
```
2020-01-02 00:04:35 +00:00
Change to the first context.
```bash
task context work
```
2020-01-02 00:04:35 +00:00
Then stop.
```bash
task context none
```
2020-01-02 00:04:35 +00:00
# Review
View list of tasks completed in the last week:
```bash
task end.after:today-1wk completed
```
2020-01-02 00:04:35 +00:00
2020-02-23 13:18:57 +00:00
# User Defined Attributes
Make a UDA 'size'.
```bash
task config uda.size.type string
```
2020-02-23 13:18:57 +00:00
```bash
task config uda.size.label Size
```
2020-02-23 13:18:57 +00:00
```bash
task config uda.size.values large,medium,small
```
2020-02-23 13:18:57 +00:00
```bash
uda.size.default=medium
```
2020-02-23 13:18:57 +00:00
2022-01-26 22:35:07 +00:00
# Tricks
This command shows tasks I'm most interested in:
```bash
task next +ACTIVE or +OVERDUE or due:today or scheduled:today or pri:H
```
2022-01-26 22:35:07 +00:00
The command is long, so `alias` is your friend.