mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +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 &&
|
||||
case "${prev}" in
|
||||
--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
|
||||
;;
|
||||
esac
|
||||
|
|
Loading…
Reference in a new issue