]> rtime.felk.cvut.cz Git - notmuch.git/blobdiff - completion/notmuch-completion.bash
cli: address: Add --filter-by option to configure address filtering
[notmuch.git] / completion / notmuch-completion.bash
index db152f358bc3bebc7a6a659332255b5b6c09f42e..2cb1586b19b1afd87ee12edeba2f212562619d77 100644 (file)
@@ -310,7 +310,7 @@ _notmuch_search()
     ! $split &&
     case "${cur}" in
        -*)
-           local options="--format= --output= --sort= --offset= --limit= --exclude= --duplicate="
+           local options="--format= --output= --sort= --offset= --limit= --exclude= --duplicate= --filter-by="
            compopt -o nospace
            COMPREPLY=( $(compgen -W "$options" -- ${cur}) )
            ;;
@@ -343,6 +343,10 @@ _notmuch_address()
            COMPREPLY=( $( compgen -W "true false flag all" -- "${cur}" ) )
            return
            ;;
+       --filter-by)
+           COMPREPLY=( $( compgen -W "nameaddr name addr addrfold nameaddrfold" -- "${cur}" ) )
+           return
+           ;;
     esac
 
     ! $split &&