about summary refs log tree commit diff stats
path: root/hm/soispha/pkgs/scripts.nix
diff options
context:
space:
mode:
authorSoispha <soispha@vhack.eu>2023-12-28 13:59:13 +0100
committerSoispha <soispha@vhack.eu>2023-12-28 14:00:15 +0100
commitea13e10d120fc9712d512e014d2c5b867d1b4c2e (patch)
tree07ef190c32af4d7c8756572743d18352194063da /hm/soispha/pkgs/scripts.nix
parentfeat(hm/pkgs/scr/neorg): Add a subcommand to making starting task easier (diff)
downloadnixos-config-ea13e10d120fc9712d512e014d2c5b867d1b4c2e.zip
fix(hm/pkgs/scr/neorg): List all task when no context is set
Before it listed task without a context, which can't exist because
their creation is denied
Diffstat (limited to '')
-rw-r--r--hm/soispha/pkgs/scripts.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/hm/soispha/pkgs/scripts.nix b/hm/soispha/pkgs/scripts.nix
index e9b520df..1fd9fd3b 100644
--- a/hm/soispha/pkgs/scripts.nix
+++ b/hm/soispha/pkgs/scripts.nix
@@ -95,7 +95,7 @@
         bash
         */
         ''
-          (wc="$(task project:"$(task _get rc.context)" _ids)"; if [ "$wc" ]; then echo "$wc"; else echo "0"; fi ) | xargs task _zshids | awk -F: -v s="'" '{print $1 ":" s $2 s}'
+          (wc="$(task "$(con="$(task _get rc.context)"; if [ "$con" ]; then echo "project:$con"; else echo "0-10000"; fi)" _ids)"; if [ "$wc" ]; then echo "$wc"; else echo "0"; fi ) | xargs task _zshids | awk -F: -v s="'" '{print $1 ":" s $2 s}'
         '';
 
       # TODO: Replace the hard-coded path here with some reference <2023-10-20>