Taskwarrior: search in pending task
This commit is contained in:
parent
8a3d2659b4
commit
bd0848fbc3
15
zshrc
15
zshrc
|
@ -408,18 +408,25 @@ alias taperso="task rc._forcecolor:on +perso | head"
|
||||||
alias tarm=tadel
|
alias tarm=tadel
|
||||||
|
|
||||||
## Functions
|
## Functions
|
||||||
## search a task by it's name (case INsensitive) {{{
|
## search in pending tasks by task's name (case INsensitive) {{{
|
||||||
function tase() {
|
function tase() {
|
||||||
local search=""
|
local search=""
|
||||||
for i; do; search="$search /$i/"; done;
|
for i; do; search="$search /$i/"; done;
|
||||||
task rc.search.case.sensitive:no $search all || return 0
|
task rc.search.case.sensitive:no +PENDING $search all || return 0
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## search a task by it's name (case SENSITIVE) {{{
|
## search in pending tasks by task's name (case SENSITIVE) {{{
|
||||||
function tasec() {
|
function tasec() {
|
||||||
local search=""
|
local search=""
|
||||||
for i; do; search="$search /$i/"; done;
|
for i; do; search="$search /$i/"; done;
|
||||||
task $search all || return 0
|
task $search +PENDING all || return 0
|
||||||
|
}
|
||||||
|
## }}}
|
||||||
|
## search in all tasks by task's name (case INsensitive) {{{
|
||||||
|
function tall() {
|
||||||
|
local search=""
|
||||||
|
for i; do; search="$search /$i/"; done;
|
||||||
|
task rc.search.case.sensitive:no $search all || return 0
|
||||||
}
|
}
|
||||||
## }}}
|
## }}}
|
||||||
## Delete a task {{{
|
## Delete a task {{{
|
||||||
|
|
Loading…
Reference in New Issue