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:
12
Taskfile.yml
12
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:
|
||||
|
||||
Reference in New Issue
Block a user