feat: add tb2task function

This commit is contained in:
Alex Kelly 2023-01-31 18:53:29 -05:00
parent 79e0a61ed5
commit f87ad3a70e

View file

@ -41,6 +41,18 @@ 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
taskrm () {
TASK_CMD="task"