如何安装Taskwarrior(基于终端的Todo应用程序)

Taskwarrior是一个开放源代码,跨平台的时间和任务管理工具。它具有命令行界面而不是图形用户界面。如果您在Linux终端上花费大量时间(以开发人员或系统管理员的身份),那么不断地切换到Web应用程序或其他基于GUI的待办事项应用程序可能不是一件非常有效率的事情。在这种情况下,您可能想尝试一个简单的命令行应用程序。本文介绍了如何在Ubuntu中安装Taskwarrior。

要安装Taskwarrior,请使用以下命令-

$ sudo apt-get install task

样本输出应如下所示–

Building dependency tree
Reading state information... Done
The following packages were automatically installed and are no longer required:
   libcgmanager0:i386 libdrm2:i386 libhdb9-heimdal libkdc2-heimdal libntdb1
   libpng12-0:i386 libudev1:i386 python-ntdb
Use 'apt-get autoremove' to remove them.
The following NEW packages will be installed:
   task
0 upgraded, 1 newly installed, 0 to remove and 1 not upgraded.
Need to get 861 kB of archives.
After this operation, 2,104 kB of additional disk space will be used.
Get:1 http://ubuntu.excellmedia.net/archive/ trusty/universe task amd64 2.2.0-3 [861 kB]
Fetched 861 kB in 1s (643 kB/s)
Selecting previously unselected package task.
(Reading database ... 281767 files and directories currently installed.)
Preparing to unpack .../task_2.2.0-3_amd64.deb ...
Unpacking task (2.2.0-3) ...
Processing triggers for man-db (2.6.7.1-1ubuntu1) ...
Setting up task (2.2.0-3) ...

要使用taskwarior,请使用以下命令-

$ task

要将任务添加到taskwarior,请使用以下命令–

$ task add Example task due:Tomorrow

在上面的命令中,Example任务是任务信息。要查看上述任务,请使用以下命令–

$ task

样本输出应如下所示–

[task next]

ID Due          Age Urg Description
1 4/26/2016     12s 8.64 Example task

1 task

要查找所有待处理任务的列表,请使用以下命令–

$ task long

为了完成任务信息,已完成的任务将不再显示在“ task long”的输出中,而只能在“ task all”中看到。使用以下命令-

$ task done

要删除任务,请使用以下命令–

$ task delete

要将任务标记为已开始,请使用以下命令–

$ task start

要将任务标记为已停止,请使用以下命令–

$ task stop

要修改现有任务,请使用以下命令–

$ task modify

要在运行任务战士的多台计算机之间同步任务,您必须将dropbox与push,pull和merge结合使用,如下所示-

Push

此命令将本地任务数据推入Dropbox。现在,在另一台计算机上,您可以获取这些任务。

$ task push ~/Dropbox/

Pull

另一台计算机可以使用以下命令来完成这些任务–

$ task pull ~/Dropbox/

Merge

这样,您就可以保留本地任务,并从另一台计算机获取任何更新的任务。您还可以选择将合并的任务数据推送到Dropbox,请使用以下命令–

$ task merge ~/Dropbox/

要获取有关taskwarior的更多信息,请使用以下命令–

$ task help

样本输出应如下所示–

Usage: task                               Runs rc.default.command, if specified.
task active                               Lists active tasks
task add                                  Adds a new task
task all                                  Lists all pending and completed tasks
task annotate                             Adds an annotation to an existing task
task append                               Appends text to an existing task description
task blocked                              Lists all blocked tasks
task blocking                             Lists all blocking tasks
task burndown.daily                       Shows a graphical burndown chart, by day
task burndown.monthly                     Shows a graphical burndown chart, by month
task burndown.weekly                      Shows a graphical burndown chart, by week
task calendar [due| |] [y]                Shows a calendar, with due tasks marked
task colors [sample | legend]             All colors, a sample, or a legend
task columns [substring]                  All supported columns and formatting styles
task completed                            Lists completed tasks
task config [name [value | '']]           Change settings in the task configuration
task count                                Counts matching tasks
task delete                               Deletes the specified task
task denotate                             Deletes an annotation
task diagnostics                          Platform, build and environment details

................................................................................................

在阅读完本文之后,您将能够了解–如何安装Taskwarrior(基于终端的todo应用程序)。在我们的下一篇文章中,我们将提出更多基于Linux的技巧。继续阅读!