From bd0848fbc3d4a7bdecec25bf674a4ceff42cf6a8 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Wed, 2 Mar 2022 09:18:45 +0100 Subject: [PATCH] Taskwarrior: search in pending task --- zshrc | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) 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 {{{