mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-01 07:04:10 +01:00
emacs: add mimetype completions to searches
This commit is contained in:
parent
297d091e1c
commit
385413e059
1 changed files with 3 additions and 2 deletions
|
@ -892,9 +892,10 @@ PROMPT is the string to prompt with."
|
||||||
(process-lines notmuch-command "search" "--output=tags" "*")))
|
(process-lines notmuch-command "search" "--output=tags" "*")))
|
||||||
(completions
|
(completions
|
||||||
(append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:"
|
(append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:"
|
||||||
"subject:" "attachment:" "mimetype:")
|
"subject:" "attachment:")
|
||||||
(mapcar (lambda (tag) (concat "tag:" tag)) all-tags)
|
(mapcar (lambda (tag) (concat "tag:" tag)) all-tags)
|
||||||
(mapcar (lambda (tag) (concat "is:" tag)) all-tags))))
|
(mapcar (lambda (tag) (concat "is:" tag)) all-tags)
|
||||||
|
(mapcar (lambda (mimetype) (concat "mimetype:" mimetype)) (mailcap-mime-types)))))
|
||||||
(let ((keymap (copy-keymap minibuffer-local-map))
|
(let ((keymap (copy-keymap minibuffer-local-map))
|
||||||
(current-query (case major-mode
|
(current-query (case major-mode
|
||||||
(notmuch-search-mode (notmuch-search-get-query))
|
(notmuch-search-mode (notmuch-search-get-query))
|
||||||
|
|
Loading…
Reference in a new issue