|
Revision 292, 1.3 kB
(checked in by athomas, 3 years ago)
|
- Updated my E-Mail address after about a year of having the wrong one :)
- Removed informational message at top of .todo files as it was rather useless and actually annoying to some people placing their .todo files under version control systems.
- Added a XSLT -> XHTML+CSS transform from Francesco Poli.
- Added a bash completion script from the Gentoo projects maintainer Aaron Walker.
- Fixed seg fault visible on 64-bit systems but present on all. Thanks to the Debian project for notifying me and providing a fix.
|
| Line | |
|---|
| 1 |
# bash command-line completion for devtodo |
|---|
| 2 |
# Author: Aaron Walker <ka0ttic@gentoo.org> |
|---|
| 3 |
|
|---|
| 4 |
_devtodo() { |
|---|
| 5 |
local cur prev opts |
|---|
| 6 |
COMPREPLY=() |
|---|
| 7 |
cur="${COMP_WORDS[COMP_CWORD]}" |
|---|
| 8 |
prev="${COMP_WORDS[COMP_CWORD-1]}" |
|---|
| 9 |
opts="-v --verbose -a --add -g --graft -l --link -R --reparent |
|---|
| 10 |
-p --priority -e --edit --remove -d --done -D --not-done |
|---|
| 11 |
--global-database -G --global --database -T --TODO -A --all |
|---|
| 12 |
-f --filter --colour --force-colour --mono --help --version |
|---|
| 13 |
--title --date-format --format --use-format --sort --paranoid |
|---|
| 14 |
--database-loaders --backup -s --summary -c --comment --timeout |
|---|
| 15 |
--purge" |
|---|
| 16 |
|
|---|
| 17 |
if [[ ${cur} == -* || ${COMP_CWORD} -eq 1 ]] ; then |
|---|
| 18 |
COMPREPLY=( $(compgen -W "${opts}" -- ${cur}) ) |
|---|
| 19 |
return 0 |
|---|
| 20 |
fi |
|---|
| 21 |
|
|---|
| 22 |
case "${prev}" in |
|---|
| 23 |
-p|--priority) |
|---|
| 24 |
COMPREPLY=( $(compgen -W "default veryhigh high medium low verylow" \ |
|---|
| 25 |
-- ${cur}) ) |
|---|
| 26 |
;; |
|---|
| 27 |
--database-loaders) |
|---|
| 28 |
COMPREPLY=( $(compgen -W "xml binary" -- ${cur}) ) |
|---|
| 29 |
;; |
|---|
| 30 |
-l|--link|--*database) |
|---|
| 31 |
COMPREPLY=( $(compgen -f -- ${cur}) ) |
|---|
| 32 |
;; |
|---|
| 33 |
*) |
|---|
| 34 |
COMPREPLY=() |
|---|
| 35 |
;; |
|---|
| 36 |
esac |
|---|
| 37 |
} |
|---|
| 38 |
complete -o filenames -F _devtodo devtodo todo tda tde tdr tdd tdl |
|---|
| 39 |
|
|---|
| 40 |
# vim: set ft=sh tw=80 sw=4 et : |
|---|