sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" ) )
;;
*)
- local search_terms="from: to: subject: attachment: tag: id: thread: folder: path: date:"
+ local search_terms="from: to: subject: attachment: mimetype: tag: id: thread: folder: path: date:"
compopt -o nospace
COMPREPLY=( $(compgen -W "${search_terms}" -- ${cur}) )
;;
$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
! $split &&
case "${cur}" in
--*)
- local options="--create-folder --folder="
+ local options="--create-folder --folder= --keep --no-hooks"
compopt -o nospace
COMPREPLY=( $(compgen -W "$options" -- ${cur}) )
return
return
;;
--output)
- COMPREPLY=( $( compgen -W "sender recipients" -- "${cur}" ) )
+ COMPREPLY=( $( compgen -W "sender recipients count" -- "${cur}" ) )
return
;;
--sort)