q: add task checklist
This commit is contained in:
parent
1a9b49087b
commit
4e59a06ad4
1 changed files with 13 additions and 0 deletions
|
@ -270,6 +270,7 @@ let
|
|||
done
|
||||
'';
|
||||
|
||||
|
||||
q-virtualization = ''
|
||||
printf '%20s │ %s\n' "VT" \
|
||||
$(${pkgs.systemd}/bin/systemd-detect-virt)
|
||||
|
@ -310,6 +311,16 @@ let
|
|||
done
|
||||
'';
|
||||
|
||||
q-task-checklist = ''
|
||||
${pkgs.taskwarrior}/bin/task export +checklist status:pending | \
|
||||
${pkgs.jq}/bin/jq \
|
||||
--raw-output '
|
||||
sort_by(.description) | reverse |
|
||||
.[] |
|
||||
"[ \( .id ) ] \( .description )"
|
||||
'
|
||||
'';
|
||||
|
||||
q-task-active = ''
|
||||
${pkgs.taskwarrior}/bin/task export +ACTIVE status:pending | ${pkgs.jq}/bin/jq --raw-output '.[] | "⇒ \(.id) \(.description)"'
|
||||
'';
|
||||
|
@ -332,4 +343,6 @@ in pkgs.writers.writeBashBin "q" ''
|
|||
${hrule}
|
||||
${q-task-active}
|
||||
${hrule}
|
||||
${q-task-checklist}
|
||||
${hrule}
|
||||
''
|
||||
|
|
Loading…
Reference in a new issue