X-Git-Url: https://git.notmuchmail.org/git?a=blobdiff_plain;f=completion%2Fnotmuch-completion.bash;h=e462a82a554eea393cf71f456f40e363160b4842;hb=798aa789b5d117cf11697bc97dd982bd5a2c2ac8;hp=72a75a94abf96cb4bd77a67674123a8aa61016ef;hpb=c5356b9ed56e42d36ca18206155b62c94cfbd79d;p=notmuch diff --git a/completion/notmuch-completion.bash b/completion/notmuch-completion.bash index 72a75a94..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}) ) ;; @@ -435,10 +435,18 @@ _notmuch_reindex() local cur prev words cword split _init_completion -s || return + $split && + case "${prev}" in + --decrypt) + COMPREPLY=( $( compgen -W "true false" -- "${cur}" ) ) + return + ;; + esac + ! $split && case "${cur}" in -*) - local options="${_notmuch_shared_options}" + local options="--decrypt= ${_notmuch_shared_options}" compopt -o nospace COMPREPLY=( $(compgen -W "$options" -- ${cur}) ) ;;