Add action argument for help to todo_completion.

Note that this is not perfect, as it only handles completing a single action after "help", but that should over the most important use case.
This commit is contained in:
Ingo Karkat
2012-04-27 14:29:29 +02:00
parent f2b9734047
commit 7acb521190
3 changed files with 22 additions and 0 deletions

View File

@@ -28,6 +28,8 @@ _todo()
case "$prev" in
command)
completions=$COMMANDS;;
help)
completions="$COMMANDS $(eval TODOTXT_VERBOSE=0 $_todo_sh command listaddons)";;
addto|listfile|lf)
completions=$(eval TODOTXT_VERBOSE=0 $_todo_sh command listfile);;
-*) completions="$COMMANDS $(eval TODOTXT_VERBOSE=0 $_todo_sh command listaddons) $OPTS";;