Can I add an annotation to a task in Taskwarrior while creating it like that?
task add Description annotation:Anno
Run Code Online (Sandbox Code Playgroud)
Normaly I have to do it with two commands
task add Description
task 1 annotate Anno
Run Code Online (Sandbox Code Playgroud)
正如文档所述,使用 add 命令是不可能的:
创建任务时不能添加注释,因为它会干扰任务描述。
一种可能的解决方法是编写一个要求注释的脚本:
#!/bin/bash
set -e
task add $@
ID=$(task +LATEST ids)
read -p "Annotation: " ANNOTATION
task $ID annotate $ANNOTATION
Run Code Online (Sandbox Code Playgroud)