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:
parent
a4bbb0ed3a
commit
20741b3ca0
1 changed files with 8 additions and 0 deletions
|
|
@ -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" "$@"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue