blob: 77a0e77f8852db72969ccb162d312561e9da8fe4 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
|
# Todolist
Todolist is a simple and very fast task manager for the command line. It is based on the (Getting Things Done)[gtd] methodology.
[gtd]: http://lifehacker.com/productivity-101-a-primer-to-the-getting-things-done-1551880955
## Installation
Grab the binary that makes sense for your platform:
## Usage
Todolist looks for a `.todos.json` file in the current directory you are in.
The first command you will want to run is `todo init`.
```
~ todo init
Todo repo initialized.
```
#### Adding todos
Adding todos is as simple as using the `add` or `a` command.
```bash
~ todo add Talk with @bob about the +devopsProject due tuesday
Todo added.
```
**Projects and Contexts**
When you add a todo, you can add one or more `+project`s or `@context`s, which you can use for grouping or filtering.
```
~ todo a Did @mary talk with @bob about the +devopsProject? due tod
Todo added.
```
**Dates**
You can also add a due date by adding `due <date>` at the end. Below is a list of phrases that `due` can recognize:
* `due today` or `due tod`
* `due tomorrow` or `due tom`
* `due (monday|tuesday|wednesday|thursday|friday|saturday|sunday)`
* `due (mon|tue|wed|thur|fri|sat|sun)`
Sets the due date to be a specific day of this or next week, depending on what day it is.
For example, if today is a Tuesday:
* `todo a chat with @nick due wed` will be the very next day.
* `todo a chat with @nick due mon` will be the *following* Monday.
You can also use specific dates, provided the are in the format of `jan 2` or `2 jan`.
* `todo a chat with @nick due may 15`
* `todo a chat with @nick due 15 may`
#### Listing todos
Listing todos outputs a nice formatted list.
**`todo list`**
<pre>
<span style="color:teal;">all</span>
<span style="color:olive;">1</span> [ ] <span style="color:blue;">tomorrow</span> Talk with <span style="color:red;">@bob</span> about the <span style="color:purple;">+devopsProject</span>
<span style="color:olive;">2</span> [ ] <span style="color:blue;">Wed May 11</span> did <span style="color:red;">@mary</span> needs to repair the flux capacitor for the <span style="color:purple;">+timeTravel</span> project
</pre>
This will list all unarchived todos.
## FAQ
**Really? Another task manager?**
I wrote todolist because I basically wanted to be able to grep my todos easily. Also, while Wunderlist is fantastic, managing todos is something that is easily done on the command line.
|