feat: add tb2task function
This commit is contained in:
parent
79e0a61ed5
commit
f87ad3a70e
1 changed files with 12 additions and 0 deletions
|
@ -41,6 +41,18 @@ tickle () {
|
||||||
}
|
}
|
||||||
alias tick=tickle
|
alias tick=tickle
|
||||||
|
|
||||||
|
tb2task () {
|
||||||
|
# takes a task from cbthunderlink in the format of `"$subject$" $cblink$`
|
||||||
|
# splits the line into subject and link, adds a task with the description of subject
|
||||||
|
# and adds a cbthunderlink URL as an annotation for taskopen
|
||||||
|
# I wouldn't have to do this if TB had some way to execute a script
|
||||||
|
subject="$1"
|
||||||
|
shift
|
||||||
|
link="$1"
|
||||||
|
task add +in +mail "$subject"
|
||||||
|
task ann $(task +LATEST uuids) -- "$link"
|
||||||
|
}
|
||||||
|
|
||||||
# Sometimes I want to make things go away, taskrm will delete and purge an entity
|
# Sometimes I want to make things go away, taskrm will delete and purge an entity
|
||||||
taskrm () {
|
taskrm () {
|
||||||
TASK_CMD="task"
|
TASK_CMD="task"
|
||||||
|
|
Loading…
Reference in a new issue