completion: complete directory parameters to directories only

i.e. don't complete to files if only directories are acceptable.
This commit is contained in:
Jani Nikula 2014-03-12 22:33:49 +02:00 committed by David Bremner
parent d5822224da
commit b6238f7e51

View file

@ -78,7 +78,7 @@ _notmuch_compact()
$split && $split &&
case "${prev}" in case "${prev}" in
--backup) --backup)
_filedir _filedir -d
return return
;; ;;
esac esac
@ -107,7 +107,7 @@ _notmuch_config()
;; ;;
# these will also complete on config get, but we don't care # these will also complete on config get, but we don't care
database.path) database.path)
_filedir _filedir -d
;; ;;
maildir.synchronize_flags) maildir.synchronize_flags)
COMPREPLY=( $(compgen -W "true false" -- ${cur}) ) COMPREPLY=( $(compgen -W "true false" -- ${cur}) )