X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=completion%2Fnotmuch-completion.bash;fp=completion%2Fnotmuch-completion.bash;h=7cad047f8499b083640c8a968551c09e9246c094;hp=d44b2a2811f016ce052296f61a8c12bbc77cf3d8;hb=c7df0cca9e91c0db7af968e0f434e1a3d602d662;hpb=df483ed4bd8b7ce6004368860b0130784546bb64 diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash index d44b2a28..7cad047f 100644 --- a/completion/notmuch-completion.bash +++ b/completion/notmuch-completion.bash @@ -117,8 +117,12 @@ _notmuch_search_terms() compopt -o nospace COMPREPLY=( $(compgen -P "mimetype:" -W "`_notmuch_mimetype ${cur}`" -- ${cur##mimetype:}) ) ;; + query:*) + compopt -o nospace + COMPREPLY=( $(compgen -P "query:" -W "`notmuch config list | sed -n '/^query\./s/^query\.\([^=]*\)=.*/\1/p'`" -- ${cur##query:}) ) + ;; *) - local search_terms="from: to: subject: attachment: mimetype: tag: id: thread: folder: path: date: lastmod:" + local search_terms="from: to: subject: attachment: mimetype: tag: id: thread: folder: path: date: lastmod: query: property:" compopt -o nospace COMPREPLY=( $(compgen -W "${search_terms}" -- ${cur}) ) ;;