diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-22 20:49:56 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-22 20:49:56 +0200 |
| commit | 8bed6384e8bacd7800b82860b2959994b33fd8c2 (patch) | |
| tree | 2e4da1be3511b30ff2ced6e5db37316dd0cd0900 | |
| parent | 8a0725878bb2bdd4083091ad2c1dbe9593d49213 (diff) | |
Update
| -rw-r--r-- | fish/conf.d/taskwarrior.fish | 4 | ||||
| -rw-r--r-- | fish/conf.d/update.fish | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/fish/conf.d/taskwarrior.fish b/fish/conf.d/taskwarrior.fish index 1a25fcc..8634941 100644 --- a/fish/conf.d/taskwarrior.fish +++ b/fish/conf.d/taskwarrior.fish @@ -309,7 +309,7 @@ function taskwarrior::feeder::schedule_ids set -l filter "$argv[1]" set -l due "$argv[2]" set -l filter_args (string split ' ' -- "$filter") - set -l ids (task $filter_args rc.verbose:nothing export | jq -r '.[]?.id') + set -l ids (task status:pending $filter_args rc.verbose:nothing export | jq -r '.[] | (.id // 0) | select(. > 0)') for id in $ids timeout 5s task modify "$id" due:$due @@ -318,7 +318,7 @@ end function taskwarrior::feeder::schedule taskwarrior::feeder::schedule_ids "+track due:" eow - for id in (task -unsched -nosched -meeting -track due: rc.verbose:nothing export | jq -r '.[]?.id') + for id in (task status:pending -unsched -nosched -meeting -track due: rc.verbose:nothing export | jq -r '.[] | (.id // 0) | select(. > 0)') timeout 5s task modify "$id" due:(random 0 $TASKWARRIOR_FEEDER_PERSONAL_TIMESPAN_D)d end end diff --git a/fish/conf.d/update.fish b/fish/conf.d/update.fish index 2f77f2e..dcac467 100644 --- a/fish/conf.d/update.fish +++ b/fish/conf.d/update.fish @@ -28,7 +28,7 @@ function update::tools rm ~/go/bin/hexai-lsp end - for prog in tasksamurai timr perc loadbars + for prog in tasksamurai timr perc loadbars foostore echo "Installing/updating $prog from codeberg.org/snonux/$prog/cmd/$prog@latest" go install codeberg.org/snonux/$prog/cmd/$prog@latest & set -a pids $last_pid |
