]> git.cworth.org Git - notmuch/blobdiff - completion/notmuch-completion.bash
completion: remove the broken notmuch-completion.tcsh
[notmuch] / completion / notmuch-completion.bash
index db152f358bc3bebc7a6a659332255b5b6c09f42e..d58dc8bed60f3640529d0b06dd5e294308acbfae 100644 (file)
@@ -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
@@ -196,7 +199,7 @@ _notmuch_insert()
     ! $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