aboutsummaryrefslogtreecommitdiff
path: root/completion/notmuch-completion.bash
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2015-09-26 14:12:50 +0300
committerDavid Bremner <david@tethera.net>2015-10-21 21:21:45 -0300
commitddbda8f501f7ad8b6e7ad59e2d8b6375b6438f49 (patch)
tree47dde920060f94a6786669194ee8cf378cfd19ce /completion/notmuch-completion.bash
parentf9d2ccf67b0534637c128fd088957604d0435e7c (diff)
completion: handle notmuch address --deduplicate= option
Complete notmuch address --deduplicate=(no|mailbox|address).
Diffstat (limited to 'completion/notmuch-completion.bash')
-rw-r--r--completion/notmuch-completion.bash6
1 files changed, 5 insertions, 1 deletions
diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash
index 960275d1..68b06901 100644
--- a/completion/notmuch-completion.bash
+++ b/completion/notmuch-completion.bash
@@ -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}) )
;;