diff --git a/zshrc b/zshrc index c000b71..819023f 100644 --- a/zshrc +++ b/zshrc @@ -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 {{{