diff --git a/Taskfile.yml b/Taskfile.yml index f491372..5a45969 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -63,6 +63,18 @@ tasks: cmds: - git log --oneline -10 + notes: + desc: Interactive picker for notes tasks + cmds: + - | + TASK=$(task --list | grep "^\* notes:" | sed 's/^\* notes://' | sed 's/\s\+/ - /' | fzf --prompt="Select notes task: " --height=40% --reverse) + if [ -n "$TASK" ]; then + TASK_NAME=$(echo "$TASK" | awk '{print $1}' | sed 's/:$//') + task notes:$TASK_NAME + fi + interactive: true + silent: true + notes:help: desc: Show available notes commands cmds: