]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - completion/notmuch-completion.bash
cli: Add configurable address deduplication for --output=addresses
[notmuch.git] / completion / notmuch-completion.bash
index c37ddf56233bb3f8040e870eb30ec37d5373e7ab..8bc78740af1a378ffb72ca0cebdd4038f6032d33 100644 (file)
@@ -305,12 +305,16 @@ _notmuch_search()
            COMPREPLY=( $( compgen -W "true false flag all" -- "${cur}" ) )
            return
            ;;
+       --unique)
+           COMPREPLY=( $( compgen -W "none addr addrfold name" -- "${cur}" ) )
+           return
+           ;;
     esac
 
     ! $split &&
     case "${cur}" in
        -*)
-           local options="--format= --output= --sort= --offset= --limit= --exclude= --duplicate="
+           local options="--format= --output= --sort= --offset= --limit= --exclude= --duplicate= --unique="
            compopt -o nospace
            COMPREPLY=( $(compgen -W "$options" -- ${cur}) )
            ;;