]> git.notmuchmail.org Git - notmuch/commitdiff
completion: handle notmuch address --deduplicate= option
authorJani Nikula <jani@nikula.org>
Sat, 26 Sep 2015 11:12:50 +0000 (14:12 +0300)
committerDavid Bremner <david@tethera.net>
Thu, 22 Oct 2015 00:21:45 +0000 (21:21 -0300)
Complete notmuch address --deduplicate=(no|mailbox|address).

completion/notmuch-completion.bash

index 960275d1f6727b139d2b2ccd680d95c982b4eec4..68b069013655f9f26e0f6e4a6301d9020f7b76d2 100644 (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}) )
            ;;