Add idea aliases for running topen in the repository

Notes can be opened/written by either executing `idea note <id>` or
`idean <id>`.
This commit is contained in:
Marty Oehme 2025-06-22 19:27:28 +02:00
parent a4bbb0ed3a
commit 20741b3ca0
Signed by: Marty
GPG key ID: 4E535BC19C61886E

View file

@ -41,7 +41,15 @@ alias tas="task +ACTIVE stop"
alias to="task note"
#---
# Additional idea repository
idea() {
if [ "$1" = "note" ]; then
shift
idean "$@"
fi
task rc.data.location="$TASK_DATA_IDEA" "$@"
}
idean() {
topen --task-data "$TASK_DATA_IDEA" --notes-dir "$TASK_DATA_IDEA/notes" "$@"
}