completion: handle notmuch address --deduplicate= option

Complete notmuch address --deduplicate=(no|mailbox|address).
This commit is contained in:
Jani Nikula 2015-09-26 14:12:50 +03:00 committed by David Bremner
parent f9d2ccf67b
commit ddbda8f501

View file

@ -369,12 +369,16 @@ _notmuch_address()
COMPREPLY=( $( compgen -W "true false flag all" -- "${cur}" ) )
return
;;
--deduplicate)
COMPREPLY=( $( compgen -W "no mailbox address" -- "${cur}" ) )
return
;;
esac
! $split &&
case "${cur}" in
-*)
local options="--format= --output= --sort= --exclude="
local options="--format= --output= --sort= --exclude= --deduplicate="
compopt -o nospace
COMPREPLY=( $(compgen -W "$options" -- ${cur}) )
;;