completion: complete directory parameters to directories only
authorJani Nikula <jani@nikula.org>
Wed, 12 Mar 2014 20:33:49 +0000 (22:33 +0200)
committerDavid Bremner <david@tethera.net>
Tue, 25 Mar 2014 23:00:24 +0000 (20:00 -0300)
i.e. don't complete to files if only directories are acceptable.

completion/notmuch-completion.bash

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