diff options
| author | Daniel Kahn Gillmor <dkg@fifthhorseman.net> | 2017-12-08 01:23:50 -0500 |
|---|---|---|
| committer | David Bremner <david@tethera.net> | 2017-12-08 08:05:53 -0400 |
| commit | d3964e81ac98825a025a6120c488ebd73de2a281 (patch) | |
| tree | a75286394e0ae529e6db68bb4fe964a55b27c9bd /completion | |
| parent | de80ede3dfa88d50a3a4d34cedfcd71b8bde165b (diff) | |
indexing: Change from try_decrypt to decrypt
the command-line interface for indexing (reindex, new, insert) used
--try-decrypt; and the configuration records used index.try_decrypt.
But by comparison with "show" and "reply", there doesn't seem to be
any reason for the "try" prefix.
This changeset adjusts the command-line interface and the
configuration interface.
For the moment, i've left indexopts_{set,get}_try_decrypt alone. The
subsequent changeset will address those.
Diffstat (limited to 'completion')
| -rw-r--r-- | completion/notmuch-completion.bash | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash index 7aae4297..e462a82a 100644 --- a/completion/notmuch-completion.bash +++ b/completion/notmuch-completion.bash @@ -287,7 +287,7 @@ _notmuch_insert() sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" ) ) return ;; - --try-decrypt) + --decrypt) COMPREPLY=( $( compgen -W "true false" -- "${cur}" ) ) return ;; @@ -296,7 +296,7 @@ _notmuch_insert() ! $split && case "${cur}" in --*) - local options="--create-folder --folder= --keep --no-hooks --try-decrypt= ${_notmuch_shared_options}" + local options="--create-folder --folder= --keep --no-hooks --decrypt= ${_notmuch_shared_options}" compopt -o nospace COMPREPLY=( $(compgen -W "$options" -- ${cur}) ) return @@ -319,7 +319,7 @@ _notmuch_new() $split && case "${prev}" in - --try-decrypt) + --decrypt) COMPREPLY=( $( compgen -W "true false" -- "${cur}" ) ) return ;; @@ -328,7 +328,7 @@ _notmuch_new() ! $split && case "${cur}" in -*) - local options="--no-hooks --try-decrypt= --quiet ${_notmuch_shared_options}" + local options="--no-hooks --decrypt= --quiet ${_notmuch_shared_options}" compopt -o nospace COMPREPLY=( $(compgen -W "${options}" -- ${cur}) ) ;; @@ -437,7 +437,7 @@ _notmuch_reindex() $split && case "${prev}" in - --try-decrypt) + --decrypt) COMPREPLY=( $( compgen -W "true false" -- "${cur}" ) ) return ;; @@ -446,7 +446,7 @@ _notmuch_reindex() ! $split && case "${cur}" in -*) - local options="--try-decrypt= ${_notmuch_shared_options}" + local options="--decrypt= ${_notmuch_shared_options}" compopt -o nospace COMPREPLY=( $(compgen -W "$options" -- ${cur}) ) ;; |
