wtf: only show the future in upcoming

This commit is contained in:
Ingolf Wagner 2020-01-13 10:57:57 +13:00
parent a589df7269
commit 1a2ac3e0ee
No known key found for this signature in database
GPG key ID: 76BF5F1928B9618B

View file

@ -38,7 +38,7 @@ let
taskNextWeek = pkgs.writers.writeDash "taskweek" ''
${pkgs.taskwarrior}/bin/task \
export \
status:pending and \( due.before:6days \) \
status:pending and \( due.before:7days and due.after:today \) \
| ${pkgs.jq}/bin/jq '[.[] | { Day: .due, ID: .id, Description: .description | sub("\n.*";"")} ] | sort_by(.Day)' \
| ${pkgs.miller}/bin/mlr --ijson --opprint put '$Day = strftime(strptime($Day,"%Y%m%dT%H%M%SZ")'$(date +%z)'00,"%a")'
'';