diff options
| author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2017-12-19 11:40:54 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-12-29 16:45:46 -0400 |
| commit | 8ea4a99d74737929f58568505e41c94f65a14743 (patch) | |
| tree | 883dcaa320dc97b3a9cba27d2f18f848965e57b8 /completion | |
| parent | 0ada2a05c94de72bc2c7c57a790e92b77af37a42 (diff) | |
cli/show: make --decrypt take a keyword.
We also expand tab completion for it, update the emacs bindings, and
update T350, T357, and T450 to match.
Make use of the bool-to-keyword backward-compatibility feature.
Diffstat (limited to 'completion')
| -rw-r--r-- | completion/notmuch-completion.bash | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash index adf64a0a..17f3c5ec 100644 --- a/completion/notmuch-completion.bash +++ b/completion/notmuch-completion.bash @@ -517,10 +517,14 @@ _notmuch_show() COMPREPLY=( $( compgen -W "text json sexp mbox raw" -- "${cur}" ) ) return ;; - --exclude|--body|--decrypt) + --exclude|--body) COMPREPLY=( $( compgen -W "true false" -- "${cur}" ) ) return ;; + --decrypt) + COMPREPLY=( $( compgen -W "true auto false" -- "${cur}" ) ) + return + ;; esac ! $split && |
