$ task A configuration file could not be found in ~
Would you like a sample /home/link/.taskrc created, so Taskwarrior can proceed? (yes/no) yes [task next] No matches.
添加任务
添加任务快速而不显眼。
1 2 3 4
$ task add Plant the wheat Created task1.
运行 task 或者 task list 来显示即将来临的任务。
1 2 3 4 5 6 7
$ task list
ID Age Description Urg 18s Plant the wheat 0
1task
让我们添加一些任务来完成这个示例。
1 2 3 4 5 6 7 8 9
$ task add Tend the wheat Created task 2. $ task add Cut the wheat Created task 3. $ task add Take the wheat tothe mill to be ground into flour Created task 4. $ task add Bake a cake Created task 5.
再次运行 task 来查看列表。
1 2 3 4 5 6 7 8 9 10 11
[task next]
ID Age Description Urg 1 3min Plant the wheat 0 2 22s Tend the wheat 0 3 16s Cut the wheat 0 4 8s Take the wheat to the mill to be ground into flour 0 5 2s Bake a cake 0
5 tasks
完成任务
将一个任务标记为完成, 查找其 ID 并运行:
1 2 3 4
$ task1 done Completed task1'Plant the wheat'. Completed 1task.
你也可以用它的描述来标记一个任务已完成。
1 2 3 4
$ task'Tend the wheat' done Completed task1'Tend the wheat'. Completed 1task.
通过使用 add、list 和 done,你可以说已经入门了。
设定截止日期
很多任务不需要一个截止日期:
1 2
task add Finish the article onTaskwarrior
但是有时候,设定一个截止日期正是你需要提高效率的动力。在添加任务时使用 due 修饰符来设置特定的截止日期。
1 2
task add Finish the article onTaskwarriordue:tomorrow
due 非常灵活。它接受特定日期 (2017-02-02) 或 ISO-8601 (2017-02-02T20:53:00Z),甚至相对时间 (8hrs)。可以查看所有示例的 Date & Time 文档。
日期也不只有截止日期,Taskwarrior 有 scheduled, wait 和 until 选项。
1 2
task add Proof the article onTaskwarriorscheduled:thurs
# [Created by task2.5.12/9/201716:39:14] # Taskwarrior program configuration file. # For more documentation, see http://taskwarrior.org or try 'man task', 'man task-color', # 'man task-sync' or 'man taskrc'
# Here is an example of entries that use the default, override and blank values # variable=foo -- By specifying a value, this overrides the default # variable= -- By specifying no value, this means no default # #variable=foo -- By commenting out the line, or deleting it, this uses the default
# Use the command 'task show' to see all defaults and overrides
# Files data.location=~/.task
# Color theme (uncomment one to use) #include/usr//usr/share/task/light-16.theme #include/usr//usr/share/task/light-256.theme #include/usr//usr/share/task/dark-16.theme #include/usr//usr/share/task/dark-256.theme #include/usr//usr/share/task/dark-red-256.theme #include/usr//usr/share/task/dark-green-256.theme #include/usr//usr/share/task/dark-blue-256.theme #include/usr//usr/share/task/dark-violets-256.theme #include/usr//usr/share/task/dark-yellow-green.theme #include/usr//usr/share/task/dark-gray-256.theme #include/usr//usr/share/task/dark-gray-blue-256.theme #include/usr//usr/share/task/solarized-dark-256.theme #include/usr//usr/share/task/solarized-light-256.theme #include/usr//usr/share/task/no-color.theme
$ task config displayweeknumber no Are you sure you want toadd'displayweeknumber' with a value of 'no'? (yes/no) yes Config file /home/link/.taskrc modified.