Add Taskwarrior functions to display day, week,…
This commit is contained in:
parent
84e8010f69
commit
d9f761340f
33
zshrc
33
zshrc
|
@ -322,23 +322,48 @@ alias jctl="journalctl"
|
|||
|
||||
# Taskwarrior {{{
|
||||
## Aliases
|
||||
alias wtask="task +work | head"
|
||||
alias t="task"
|
||||
|
||||
alias tawa="task waiting"
|
||||
|
||||
## search a task by it's name (case INsensitive)
|
||||
## By tag
|
||||
alias tawork="task +work | head"
|
||||
alias taperso="task +perso | head"
|
||||
|
||||
## search a task by it's name (case INsensitive) {{{
|
||||
function tase() {
|
||||
search="";
|
||||
for i; do; search="$search /$i/"; done;
|
||||
task rc.search.case.sensitive:no $search all;
|
||||
}
|
||||
|
||||
## search a task by it's name (case SENSITIVE)
|
||||
## }}}
|
||||
## search a task by it's name (case SENSITIVE) {{{
|
||||
function tasec() {
|
||||
search="";
|
||||
for i; do; search="$search /$i/"; done;
|
||||
task $search all;
|
||||
}
|
||||
## }}}
|
||||
## Display tasks of today {{{
|
||||
function taday() {
|
||||
timew summary :day :ids "${*}"
|
||||
}
|
||||
## }}}
|
||||
## Display tasks of this week {{{
|
||||
function taweek() {
|
||||
timew summary :week :ids "${*}"
|
||||
}
|
||||
## }}}
|
||||
## Display tasks of this month {{{
|
||||
function tamonth() {
|
||||
timew summary :month :ids "${*}"
|
||||
}
|
||||
## }}}
|
||||
## Display tasks of this year {{{
|
||||
function tayear() {
|
||||
timew summary :year :ids "${*}"
|
||||
}
|
||||
## }}}
|
||||
|
||||
## Completion
|
||||
zstyle ':completion:*:*:task:*' verbose yes
|
||||
|
|
Loading…
Reference in New Issue