From 671ac0e6b76149ea15e82d22a2cbdebfbfc20f1b Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Wed, 31 Dec 2025 18:03:32 +0200 Subject: Update --- dotfiles/fish/conf.d/taskwarrior.fish | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/dotfiles/fish/conf.d/taskwarrior.fish b/dotfiles/fish/conf.d/taskwarrior.fish index 1ef7513..145d226 100644 --- a/dotfiles/fish/conf.d/taskwarrior.fish +++ b/dotfiles/fish/conf.d/taskwarrior.fish @@ -68,8 +68,13 @@ end function taskwarrior::export::bd # Export bulgarian dumi - task +bd status:pending export | jq -r '.[].description' >~/Notes/Bulgarian/bd-(date +%s).txt + set -l outfile ~/Notes/Bulgarian/bd-(date +%s).txt + task +bd status:pending export | jq -r '.[].description' >$outfile yes | task +bd status:pending delete + # Delete it if it is empty + if test -f $outfile; and test ! -s $outfile + rm $outfile + end end function taskwarrior::export::gos -- cgit v1.2.3