parent
7b1cf79b19
commit
48331f34ed
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue