[PATCH] completion: handle notmuch address --deduplicate= option

Jani Nikula jani at nikula.org
Sat Sep 26 04:12:50 PDT 2015


Complete notmuch address --deduplicate=(no|mailbox|address).
---
 completion/notmuch-completion.bash | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash
index 960275d1f672..68b069013655 100644
--- a/completion/notmuch-completion.bash
+++ b/completion/notmuch-completion.bash
@@ -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}) )
 	    ;;
-- 
2.1.4



More information about the notmuch mailing list