Add my previously standalone files to the repository
This commit is contained in:
parent
37d88d7a86
commit
a3aff82a7e
10
README.md
10
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
|
||||
|
20
todo.plugin.zsh
Normal file
20
todo.plugin.zsh
Normal 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
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user