mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
completion: complete notmuch insert --folder to maildir folders only
The --folder option expects a folder relative from maildir root, so complete like the folder: search term.
This commit is contained in:
parent
516a1b37b6
commit
2dfbb7598b
1 changed files with 4 additions and 1 deletions
|
@ -188,7 +188,10 @@ _notmuch_insert()
|
||||||
$split &&
|
$split &&
|
||||||
case "${prev}" in
|
case "${prev}" in
|
||||||
--folder)
|
--folder)
|
||||||
_filedir
|
local path=`notmuch config get database.path`
|
||||||
|
compopt -o nospace
|
||||||
|
COMPREPLY=( $(compgen -d "$path/${cur}" | \
|
||||||
|
sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" ) )
|
||||||
return
|
return
|
||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
Loading…
Reference in a new issue