2023-01-25 11:36:08 -05:00
|
|
|
alias t=task
|
2023-01-30 16:54:59 -05:00
|
|
|
alias t-="task delete"
|
2023-01-25 11:36:08 -05:00
|
|
|
alias ta='task add'
|
2023-01-30 16:54:59 -05:00
|
|
|
alias tal='task add dep:"$(task +LATEST uuids)"'
|
|
|
|
alias t.='tal'
|
2023-01-31 14:58:26 -05:00
|
|
|
alias tah="task add status_report:hide"
|
2023-01-25 11:36:08 -05:00
|
|
|
alias tan='task add scheduled:today'
|
|
|
|
alias tat='task add scheduled:tomorrow until:sch+14d'
|
2023-01-31 14:58:26 -05:00
|
|
|
alias td="task done"
|
2023-04-20 13:35:44 -04:00
|
|
|
alias tl="task log"
|
2023-01-31 14:58:26 -05:00
|
|
|
alias tlh="task log status_report:hide"
|
2023-04-20 13:38:54 -04:00
|
|
|
alias ti="task add +in"
|
2023-01-25 11:36:08 -05:00
|
|
|
alias tm='task modify'
|
2023-01-30 16:54:59 -05:00
|
|
|
alias tn='clear;task next'
|
2023-01-25 11:36:08 -05:00
|
|
|
alias trol="task sch:yes status:pending modify sch:tod"
|
|
|
|
alias tu="task undo"
|
|
|
|
alias tv="vit rc.alias.next=list"
|
|
|
|
alias tw1="task modify wait:1d"
|
2023-01-30 16:54:59 -05:00
|
|
|
|
2023-01-25 11:36:08 -05:00
|
|
|
alias in='t add +in'
|
|
|
|
alias rnd='t add +rnd'
|
|
|
|
|
2023-01-30 16:54:59 -05:00
|
|
|
alias to='taskopen'
|
|
|
|
|
|
|
|
# Shortcut for my weekly report, based on my task-status utility: https://git.arachnitech.com/kellya/task-status
|
2023-01-26 22:13:15 -05:00
|
|
|
alias ts='task-status --bullet=""'
|
2024-02-06 13:11:34 -05:00
|
|
|
alias tsx='task-status --bullet="*"|wl-copy;/usr/bin/xdg-open https://frnkl.in/tins/update'
|
2023-01-26 22:10:26 -05:00
|
|
|
|
2023-01-25 11:36:08 -05:00
|
|
|
# context control
|
|
|
|
alias tc="task context"
|
|
|
|
alias tt="task rc.context=none"
|
|
|
|
alias ttv="vit rc.alias.next=list rc.context=none"
|
|
|
|
|
|
|
|
# main categories
|
|
|
|
alias tmaint="t project:maint"
|
|
|
|
|
|
|
|
|
|
|
|
# Scripty aliases
|
|
|
|
tickle () {
|
|
|
|
deadline=$1
|
|
|
|
shift
|
|
|
|
in +tickle wait:$deadline $@
|
|
|
|
}
|
|
|
|
alias tick=tickle
|
2023-01-26 22:10:26 -05:00
|
|
|
|
2023-01-31 18:53:29 -05:00
|
|
|
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"
|
|
|
|
}
|
|
|
|
|
2023-01-27 09:17:30 -05:00
|
|
|
# Sometimes I want to make things go away, taskrm will delete and purge an entity
|
|
|
|
taskrm () {
|
|
|
|
TASK_CMD="task"
|
|
|
|
TASK_OPTIONS=""
|
|
|
|
if [[ $1 == "-f" ]] || [[ $1 == "--force" ]];then
|
|
|
|
TASK_OPTIONS="rc.confirmation=off"
|
|
|
|
shift
|
|
|
|
fi
|
|
|
|
if [[ $# == 0 ]]; then
|
|
|
|
echo "No arguments given, exiting"
|
|
|
|
return 1
|
|
|
|
fi
|
|
|
|
TASKUUID=$(task $1 uuids)
|
|
|
|
$TASK_CMD $TASK_OPTIONS delete $1 && $TASK_CMD $TASK_OPTIONS purge $TASKUUID
|
|
|
|
}
|
|
|
|
alias trm="taskrm"
|
|
|
|
|
2023-01-26 22:10:26 -05:00
|
|
|
# These were built from inspiration from various parts of the internet, but in particular:
|
|
|
|
# https://gist.github.com/simonmichael/7d57c47dc643279951f1
|
|
|
|
# https://www.reddit.com/r/taskwarrior/comments/uvwqlz/share_your_aliases/
|