Taskwarrior: search in pending task

This commit is contained in:
gardouille 2022-03-02 09:18:45 +01:00
parent 8a3d2659b4
commit bd0848fbc3
Signed by: gardouille
GPG Key ID: E759BAA22501AF32
1 changed files with 11 additions and 4 deletions

15
zshrc
View File

@ -408,18 +408,25 @@ alias taperso="task rc._forcecolor:on +perso | head"
alias tarm=tadel
## Functions
## search a task by it's name (case INsensitive) {{{
## search in pending tasks by task's name (case INsensitive) {{{
function tase() {
local search=""
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() {
local search=""
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 {{{