简介

taskwarrior是一个命令行的任务管理神器,同时也有服务端,支持同步。
语法规则为

安装

Linux上可以直接软件包管理器安装
Window可以用cygwin
Mac可以用homebrew
android推荐taskwarrior-android

同步

推荐freecinc

  • 生成密钥
    点击generated my keys
  • 按照提示保存密钥,一共是三个文件
  • 按照提示配置好task
  • 同步
    第一次同步使用 task sync init,之后使用task sync
  • 和安卓同步,参考taskwarrior的官网文档
    其实就是把三个文件保存到对应的目录,然后编辑配置文件,填上路径。

另外有一个在线版,本人更喜欢命令行版,没做研究。

常用命令

添加

task add 任务名 [pro:工程名] [tag:标签名或简写为+][due:到期时间] [pri:优先级] [dep:依赖任务id]

[]表示可选,其中优先级有H、M、L(高中低)
时间格式为:
|标识|说明|
| :-------- | -----: |
|m|1 or 2 digit month number, eg '1', '12'|
|M|2 digit month number, eg '01', '12'|
|d|1 or 2 digit day of month number¸ eg '1', '12'|
|D|2 digit day of month number, eg '01', '30'|
|y|2 digit year, eg '12', where the century is assumed to be '20', therefore '2012'|
|Y|4 digit year, eg '2015'|
|h|1 or 2 digit hours, eg '1', '23'|
|H|2 digit month hours, eg '01', '23'|
|n|1 or 2 digit minutes, eg '1', '59'|
|N|2 digit minutes, eg '01', '59'|
|s|1 or 2 digit seconds, eg '1', '59'|
|S|2 digit seconds, eg '01', '59'|
|v|1 or 2 digit week number, eg '1', '52'|
|V|2 digit week number, eg '01', '52'|
|a|3-character English day name abbreviation, eg 'mon', 'tue'|
|A|Complete English day name, eg 'monday', 'tuesday'|
|b|3-character English month name abbreviation, eg 'jan', 'feb'|
|B|Complete English month name, eg 'january', 'february'|
|Everythingelse|All other format characters are taken as literals|

开始 结束 删除

task id start/done/del

修改

task id mod [命令:参数]
比如 task 1 mod pro:test 把id为1的 工程修改为 test

统计

  • task sum
  • task ghistory
  • task calendar
  • task burndown.daily

自定义

task默认是按任务的紧迫度来排序的,它采用了一个多项式来计算紧迫度,包括工程、标签、到期时间、优先级、依赖等参数。
当然我们可以修改默认排序,通过修改config来自定义。
可以按tag、project来排序,还可以修改阻塞(blocked)任务的排序属性,数值为负数时表示降低。
如:

  • task config urgency.user.tag.problem.coefficient 4.5 ,表示如果tag为problem,则紧迫度为4.5
  • task config urgency.user.project.Home.coefficient 2.9
  • task config urgency.blocked.coefficient 0.0 表示有阻塞的task紧迫度不变

过滤

  • 时间
    Show tasks I added in the last 4 days.
    $ task entry.after:today-4days list
    Show tasks I added yesterday.
    $ task entry:yesterday list
    Show tasks I added in the last hour.
    $ task entry.after:now-1hour list
    Show tasks I completed between a date range.
    $ task end.after:2015-05-01 and end.before:2015-05-31 completed
    Show tasks I completed in the last week.
    $ task end.after:today-1wk completed
  • 工程
    Show tasks in This project or That project.
    $ task project:This or project:That list
    More complex algebraic filters.
    $ task project:This and ( priority:H or priority:M ) list
  • 搜索
    Search for pattern in description and annotations:
    $ task /pattern/ list
    $ task rc.search.case.sensitive:yes /pattern/ list
    $ task rc.search.case.sensitive:no /pattern/ list

命令行todo神器taskwarrior使用简介的更多相关文章

  1. linux命令行todo列表管理工具Taskwarrior介绍

    Taskwarrior 是一款在命令行下使用的TODO列表管理工具,或者说任务管理工具,灵活,快速,高效. 安装 在ubuntu 14.04 中,可从官方仓库安装task软件包 sudo apt-ge ...

  2. Click: 命令行工具神器

    Click是一个Python用来快速实现命令行应用程序的包,主要优势表现在以下三点: 任意嵌套命令 自动生成帮助页 自动运行时lazy加载子命令 示例程序: import click @click.c ...

  3. 命令行代理神器 proxychains

    因为某些原因,我们需要在命令行下载一些国外的资源,这个时候如果使用 wget,curl,或者 aria2c 的时候,往往又没有速度.这个时候我们需要使用代理来进行加速. 我本地搭的有 ss,但 ss ...

  4. MacOS下命令行安装神器brew

    1.安装brew:/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/mast ...

  5. 命令行fuck神器

     文章 thefuck  git thefuck

  6. 25 个 Linux 下最炫酷又强大的命令行神器,你用过其中哪几个呢?

    本文首发于:微信公众号「运维之美」,公众号 ID:Hi-Linux. 「运维之美」是一个有情怀.有态度,专注于 Linux 运维相关技术文章分享的公众号.公众号致力于为广大运维工作者分享各类技术文章和 ...

  7. python命令行解析模块--argparse

    python命令行解析模块--argparse 目录 简介 详解ArgumentParser方法 详解add_argument方法 参考文档: https://www.jianshu.com/p/aa ...

  8. 十分钟用 Node 命令行工具打造 react-cli 脚手架

    如果你有以下想法: 每次新开项目需要copy一堆文件/文件夹,太烦!想要快速建立工程 用了vue-cli.react-app,羡慕!想要自己做一个 你只需花十分钟时间,做一个Node命令行工具,打造属 ...

  9. atitit.基于  Commons CLI 的命令行原理与 开发

    atitit.基于  Commons CLI 的命令行原理与 开发 1. 命令行支持的格式有以下几种: 1 2. json化,map化的命令行参数内部表示 1 3. Ati cli 2 4. CLI库 ...

随机推荐

  1. mongodb常用命令小结

    一.基于条件的查询 db.getCollection('monitor_log') .find({"requestUrl" : /app\/v1\/findcards\/cn/, ...

  2. [AaronYang风格]微软Unity2.X系统学习笔记,记录

    读者约定: Unity我直接简写U了 Unity Dependency Injection(DI) 欢迎学习Unity,通过学完下面的几个流程的引导,你应该就可以很顺利的应用Unity到你的项目中去了 ...

  3. rhel7 ifconfig command not found

    同事扔过来一个rhel7.2的系统,登录后发现没有安装ifconfig命令: # ifconfig -bash: ifconfig: command not found 先看看环境变量: # echo ...

  4. iOS 9 学习系列: Xcode Code Coverage

    Code coverage 是一个计算你的单元測试覆盖率的工具. 高水平的覆盖给你的单元測试带来信心.也表明你的应用被彻底的測试过了. 你可能写了几千个单元測试,但假设覆盖率不高.那么你写的这套測试可 ...

  5. appium 重新启动apk

    在旧版本的appium,重新启动apk,调用startActivity方法可以随意启动一个app,并传入一个package name 和启动activity name的名称.语句如下: driver. ...

  6. Js字符串与十六进制的相互转换 【转】

    开发过程中,字符串与十六进.二进制之间的相互转换常常会用到,尤其是涉及到中文的加密时,就需要把中文转换为十六进制.下面说说具体的转换方法. 1.字符串转换为十六进制 主要使用 charCodeAt() ...

  7. 携程的配置中心(阿波罗apollo)

    https://github.com/ctripcorp/apollo https://pan.baidu.com/s/1dFEGMIX#list/path=%2Fmeetup%20ppt%2F040 ...

  8. Python 构建方便的函数调用

    CODE: #!/usr/bin/python # -*- coding: utf-8 -*- ''' Created on 2014-7-14 @author: guaguastd @name: c ...

  9. Vivado与SDK的联合调试方法-使用ILA

    首先介绍一下我的硬件平台:使用的开发板为米联客出的MIZ702,这个开发板与ZedBoard是兼容的. Vivado硬件调试有几种手段:ILA(集成逻辑分析器Integrated Logic Anal ...

  10. Android中的MVP架构分解和实现

    1.概述 传统的Android开发架构通常是MVC模式. Model:业务逻辑和实体模型 View:相应于布局文件 Controllor:相应于Activity 单独从逻辑看起来很好,与我们做Web开 ...