aboutsummaryrefslogtreecommitdiff
path: root/completion/zsh
diff options
context:
space:
mode:
authorCédric Hannotier <cedric.hannotier@ulb.be>2021-12-16 18:40:53 +0100
committerDavid Bremner <david@tethera.net>2022-01-03 08:07:38 -0400
commitd99b0d4dc8b9262373e2d0ae158dd8336fc28e41 (patch)
tree9f5e03549ab04fee477841461a487fa4a241632a /completion/zsh
parentf9ffc5f433ca9c1cb1e9b9929e4f39e549910328 (diff)
completion: use mail_root for path completion in bash/zsh
Since mail store and database directory can be different, path and folder completions must use the directory given by database.mail_root, not by database.path.
Diffstat (limited to 'completion/zsh')
-rw-r--r--completion/zsh/_notmuch8
1 files changed, 4 insertions, 4 deletions
diff --git a/completion/zsh/_notmuch b/completion/zsh/_notmuch
index e920f10b..e207d90b 100644
--- a/completion/zsh/_notmuch
+++ b/completion/zsh/_notmuch
@@ -69,8 +69,8 @@ _notmuch_term_mimetype() {
_notmuch_term_path() {
local ret=1 expl
- local maildir="$(notmuch config get database.path)"
- [[ -d $maildir ]] || { _message -e "database.path not found" ; return $ret }
+ local maildir="$(notmuch config get database.mail_root)"
+ [[ -d $maildir ]] || { _message -e "database.mail_root not found" ; return $ret }
_description notmuch-folder expl 'maildir folder'
_files "$expl[@]" -W $maildir -/ && ret=0
@@ -79,8 +79,8 @@ _notmuch_term_path() {
_notmuch_term_folder() {
local ret=1 expl
- local maildir="$(notmuch config get database.path)"
- [[ -d $maildir ]] || { _message -e "database.path not found" ; return $ret }
+ local maildir="$(notmuch config get database.mail_root)"
+ [[ -d $maildir ]] || { _message -e "database.mail_root not found" ; return $ret }
_description notmuch-folder expl 'maildir folder'
local ignoredfolders=( '*/(cur|new|tmp)' )