mirror of
https://github.com/jbranchaud/til
synced 2026-01-05 08:08:02 +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:
|
cmds:
|
||||||
- git log --oneline -10
|
- 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:
|
notes:help:
|
||||||
desc: Show available notes commands
|
desc: Show available notes commands
|
||||||
cmds:
|
cmds:
|
||||||
|
|||||||
Reference in New Issue
Block a user