mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
completion: clean up top level completion
Add note about missing features.
This commit is contained in:
parent
cd4814ecb3
commit
23180439cb
1 changed files with 8 additions and 3 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue