aboutsummaryrefslogtreecommitdiff
path: root/completion
diff options
context:
space:
mode:
authorDaniel Kahn Gillmor <dkg@fifthhorseman.net>2017-10-20 22:25:47 -0400
committerDavid Bremner <david@tethera.net>2017-10-21 19:58:43 -0300
commitc5356b9ed56e42d36ca18206155b62c94cfbd79d (patch)
treec5d5d836694f49027584a5e7a6d5e176fa46d4ae /completion
parent35456d4b0c89c3fa648fb6a879c5d275e04ff1c2 (diff)
cli/insert: add --try-decrypt=(true|false)
Enable override of the index.try_decrypt setting on a per-message basis when invoking "notmuch insert". We also update the documentation and tab completion, and add more tests.
Diffstat (limited to 'completion')
-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 17be6b8f..72a75a94 100644
--- a/completion/notmuch-completion.bash
+++ b/completion/notmuch-completion.bash
@@ -287,12 +287,16 @@ _notmuch_insert()
sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" ) )
return
;;
+ --try-decrypt)
+ COMPREPLY=( $( compgen -W "true false" -- "${cur}" ) )
+ return
+ ;;
esac
! $split &&
case "${cur}" in
--*)
- local options="--create-folder --folder= --keep --no-hooks ${_notmuch_shared_options}"
+ local options="--create-folder --folder= --keep --no-hooks --try-decrypt= ${_notmuch_shared_options}"
compopt -o nospace
COMPREPLY=( $(compgen -W "$options" -- ${cur}) )
return