Add my previously standalone files to the repository

This commit is contained in:
Orien Vandenbergh 2019-11-20 10:35:13 -07:00
parent 37d88d7a86
commit a3aff82a7e
2 changed files with 30 additions and 0 deletions

View File

@ -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

20
todo.plugin.zsh Normal file
View File

@ -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
}