]> 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 39320f8d8107681e6be8d644c1f0fe3309da16ca..5a7199e7ee26075679b40e6d779b409daa641ebd 100644 (file)
@@ -313,7 +313,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}) )
            ;;
@@ -346,6 +346,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 &&