From d9f761340f863193d86d25813165b2a51d617150 Mon Sep 17 00:00:00 2001 From: Gardouille Date: Mon, 14 Oct 2019 13:20:30 +0200 Subject: [PATCH] =?UTF-8?q?Add=20Taskwarrior=20functions=20to=20display=20?= =?UTF-8?q?day,=20week,=E2=80=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- zshrc | 33 +++++++++++++++++++++++++++++---- 1 file changed, 29 insertions(+), 4 deletions(-) diff --git a/zshrc b/zshrc index dd18115..9fb0acf 100644 --- a/zshrc +++ b/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