Update completions for Emacs and bash
authorTodd <todd@electricoding.com>
Thu, 22 Jan 2015 23:43:39 +0000 (17:43 -0600)
committerDavid Bremner <david@tethera.net>
Sat, 24 Jan 2015 15:50:02 +0000 (16:50 +0100)
This adds completions for both Emacs and bash. ZSH does not appear to
have completions for search terms.

completion/notmuch-completion.bash
emacs/notmuch.el

index d58dc8bed60f3640529d0b06dd5e294308acbfae..39320f8d8107681e6be8d644c1f0fe3309da16ca 100644 (file)
@@ -61,7 +61,7 @@ _notmuch_search_terms()
                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}) )
            ;;
index 218486ace24d2b69914618de636f69be37addcf4..ab00454357ef12f26b2f92b9705f30093d753a1f 100644 (file)
@@ -858,7 +858,7 @@ PROMPT is the string to prompt with."
   (lexical-let
       ((completions
        (append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:"
-                     "subject:" "attachment:")
+                     "subject:" "attachment:" "mimetype:")
                (mapcar (lambda (tag)
                          (concat "tag:" (notmuch-escape-boolean-term tag)))
                        (process-lines notmuch-command "search" "--output=tags" "*")))))