zeit-fuzzel: No mostrar proyectos solos

Acorde a upstream 41f1c0f542
This commit is contained in:
Cat /dev/Nulo 2022-04-29 13:50:34 -03:00
parent 7b1cf79b19
commit 48331f34ed

View file

@ -11,13 +11,13 @@ if echo "$tracking" | grep -q '^ ▶ tracking'; then
fi fi
selection="$(zeit list \ selection="$(zeit list \
--only-projects-and-tasks \ --only-tasks \
--append-project-id-to-task \ --append-project-id-to-task \
| fuzzel-run \ | fuzzel-run \
--dmenu --dmenu
)" )"
task="$(echo $selection | pcregrep -io1 '└── (.+) \[.+')" task="$(echo $selection | pcregrep -io1 '(.+) \[.+')"
project="$(echo $selection | pcregrep -io1 '.+\[(.+)\]')" project="$(echo $selection | pcregrep -io1 '.+\[(.+)\]')"
if test "$task" = "" || "$project" = ""; then if test "$task" = "" || "$project" = ""; then
exit 1 exit 1