diff options
| author | Paul Buetow <paul@buetow.org> | 2026-02-12 22:54:46 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2026-02-12 22:54:46 +0200 |
| commit | 4ba8cbdc0bec33c1a2d85c695ca21b83b00093c6 (patch) | |
| tree | 5617ff15cd11fdd329186fad50a56ed896522a05 | |
| parent | f6a7148bb23894470ea5ee0e4a1fde00a9a68c5d (diff) | |
Update
| -rw-r--r-- | fish/conf.d/taskwarrior.fish | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/fish/conf.d/taskwarrior.fish b/fish/conf.d/taskwarrior.fish index 17240a3..649d92b 100644 --- a/fish/conf.d/taskwarrior.fish +++ b/fish/conf.d/taskwarrior.fish @@ -77,6 +77,21 @@ function taskwarrior::export::bd end end +function taskwarrior::export::pet + set -l petfile ~/Notes/random/Pet.md + if test -f $petfile + # Export all pet project tags + task +pet -random status:pending export | jq -r '.[].description' | sed 's/^/* /' >>$petfile.tmp.1 + grep -F '* ' $petfile >>$petfile.tmp.1 + yes | task +pet -random status:pending delete + + set -l count (sort -u $petfile.tmp.1 | wc -l | tr -d ' ') + echo "# PetProjects ($count)" >$petfile.tmp.2 + echo '' >>$petfile.tmp.2 + sort -u $petfile.tmp.1 >>$petfile.tmp.2 && mv $petfile.tmp.2 $petfile && rm $petfile.tmp.1 + end +end + function taskwarrior::export::gos task +share status:pending export >"$WORKTIME_DIR/tw-gos-export-$(date +%s).json" yes | task +share status:pending delete |
