1
0
mirror of https://github.com/jbranchaud/til synced 2026-01-03 07:08:01 +00:00

Add an interactive picker for notes tasks

This commit is contained in:
jbranchaud
2025-10-25 11:50:22 -05:00
parent 0e934d8dd3
commit e6d00a94f3

View File

@@ -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: