aboutsummaryrefslogtreecommitdiff
path: root/completion/notmuch-completion.bash
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2015-10-17 19:30:03 +0300
committerDavid Bremner <david@tethera.net>2015-10-21 21:29:53 -0300
commit23180439cb632e5565e9e3dfd8172c997262bf4c (patch)
tree51ef542ddd511d8f1bd988bb41eb79ee2a1d9800 /completion/notmuch-completion.bash
parentcd4814ecb35c63152aced04fcb82e5facf1463ca (diff)
completion: clean up top level completion
Add note about missing features.
Diffstat (limited to 'completion/notmuch-completion.bash')
-rw-r--r--completion/notmuch-completion.bash11
1 files changed, 8 insertions, 3 deletions
diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash
index 1356c4a4..f24d9ecd 100644
--- a/completion/notmuch-completion.bash
+++ b/completion/notmuch-completion.bash
@@ -484,10 +484,15 @@ _notmuch()
if [ -z "${arg}" ]; then
# top level completion
- local top_options="--help --version"
case "${cur}" in
- -*) COMPREPLY=( $(compgen -W "${top_options}" -- ${cur}) ) ;;
- *) COMPREPLY=( $(compgen -W "${_notmuch_commands}" -- ${cur}) ) ;;
+ -*)
+ # XXX: handle ${_notmuch_shared_options} and --config=
+ local options="--help --version"
+ COMPREPLY=( $(compgen -W "${options}" -- ${cur}) )
+ ;;
+ *)
+ COMPREPLY=( $(compgen -W "${_notmuch_commands}" -- ${cur}) )
+ ;;
esac
elif [ "${arg}" = "help" ]; then
# handle help command specially due to _notmuch_commands usage