logo

utils

~/.local/bin tools and git-hooks
commit: c66384de82c4183332852323594b64b6848e9e40
parent: fce209838192577a805c6d7d6510ac83306246ab
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Thu, 27 Apr 2017 13:31:42 +0200

Add help for timey-whyme.sh

Diffstat:

MREADME1+
Mbin/timey-whyme.sh13++++++++++---
Aexample/calendar.csv2++
Aexample/todo.csv7+++++++
4 files changed, 20 insertions(+), 3 deletions(-)

diff --git a/README b/README @@ -20,6 +20,7 @@ CVS for tr, convertion from one CVS dictionary another using CVS ## timey-whyme.sh script for managing your time(TODO and Calendar), done it because todo.txt/taskwarrior didn’t have nice due time and weren’t Unix-y enough +See example for help --- diff --git a/bin/timey-whyme.sh b/bin/timey-whyme.sh @@ -12,10 +12,17 @@ usage() { printf "Usage: [[all|both|cal|todo] [date]]\n" } +#todo() { +# printf $heading 'To Do List' +# printf $highlight $(grep "^$today" $xdd/todo.csv | $form) +# grep -E -v "^(#|$today)" $xdd/todo.csv | $form +#} + todo() { - printf $heading 'To Do List' - printf $highlight $(grep "^$today" $xdd/todo.csv | $form) - grep -E -v "^(#|$today)" $xdd/todo.csv | $form + echo "1970-01-01,###, To Do, ### +${today},###, Now +7 days, ### +${later},###, Later,### +$(grep -v '^#' $xdd/calendar.csv)" | sort | $form } calendar() { diff --git a/example/calendar.csv b/example/calendar.csv @@ -0,0 +1,2 @@ +#2017-02-18T15:00,2017-02-18T18:00,Cordélia: Mon Amie Gabrielle,C-LGBT Rennes +2017-06-29,2017-07-02,PSES diff --git a/example/todo.csv b/example/todo.csv @@ -0,0 +1,7 @@ +#due,priority,info,location,tags +,1,Manger +,2,ACAB +2017-05-26,1,SSL certificate expiration +2017-06-14,1,GPG subkey expiration +2017-06-15T01:38:02,1,canary expiration +2018-04-28,1,hacktivis.me domain expiration