【问题标题】:Taskwarrior - How not to display the age of a taskTaskwarrior - 如何不显示任务的年龄
【发布时间】:2021-03-04 10:26:26
【问题描述】:

我将taskwarrior与conky一起使用,为了使格式看起来更好,我想修改一下taskwarrior实际给出的信息。 特别是,我不希望它显示任务的“年龄”列。 现在它看起来像这样:

ID Age   Due Description        Urg 
 1 33min 1d  Do Stuff           8.33

但我希望它看起来更像这样:

ID Due Description        Urg 
 1 1d  Do Stuff           8.33

有没有简单的方法来做到这一点? 提前致谢!

【问题讨论】:

    标签: taskwarrior


    【解决方案1】:

    将以下行添加到文件~/.taskrc

    report.report1.description=Report without age attribute
    report.report1.columns=id,due,description,urgency
    

    然后你可以运行task report1查看报告。

    【讨论】:

    • 谢谢,这行得通!我还添加的一行看起来像:report.report1.filter=status:pending -ACTIVE -WAITING -BLOCKED -OVERDUE 否则也会报告已经完成的任务。
    【解决方案2】:

    我更喜欢编辑默认报告。使用此命令:

    task show report
    

    您将获得所有报告的配置。 task 命令的默认报告是report.next,所以你可以把它放在你的.taskrc 中而不用entry.age

    report.next.columns=id,start.age,depends,priority,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency
    report.next.labels=ID,Active,Deps,P,Project,Tag,Recur,S,Due,Until,Description,Urg
    

    现在task 命令将显示没有Agenext 报告。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-05-03
      • 2015-05-22
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多