diff --git a/README.md b/README.md index f8618f7..65abe7b 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,12 @@ # zsh-todotxt My zsh configurations wrapping todo.txt how I like + +This defines a number of functions/aliases + +`todo` - adds a new task, converting standalone priority letters to uppercase and wrapping them in parentheses + +`I` - adds a completed task + +`didlog` - runs the _lately_ plugin, reporting what's been going on + +`did <#>` - Marks the item identified by `#` as completed diff --git a/todo.plugin.zsh b/todo.plugin.zsh new file mode 100644 index 0000000..2ea7ffe --- /dev/null +++ b/todo.plugin.zsh @@ -0,0 +1,20 @@ +function t { + todo.sh $* + # generate .plan +} +function todo { + TASK=`echo "$*" | sed -e 's/^\.\([A-Za-z]\)\ /(\1) /' -e 's/^(\([a-z]\))/(\U\1)/'` + todo.sh add "$TASK" + # generate .plan +} +function I { + todo.sh done $* + # generate .plan +} +function did { + todo.sh do $* +} +function didlog { + todo.sh lately $* + # generate .plan +}