mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-23 19:38:07 +01:00
Update completions for Emacs and bash
This adds completions for both Emacs and bash. ZSH does not appear to have completions for search terms.
This commit is contained in:
parent
b04bc967f9
commit
694c7b9ba7
2 changed files with 2 additions and 2 deletions
|
@ -61,7 +61,7 @@ _notmuch_search_terms()
|
||||||
sed "s|^$path/||" | grep -v "\(^\|/\)\(cur\|new\|tmp\)$" ) )
|
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
|
compopt -o nospace
|
||||||
COMPREPLY=( $(compgen -W "${search_terms}" -- ${cur}) )
|
COMPREPLY=( $(compgen -W "${search_terms}" -- ${cur}) )
|
||||||
;;
|
;;
|
||||||
|
|
|
@ -858,7 +858,7 @@ PROMPT is the string to prompt with."
|
||||||
(lexical-let
|
(lexical-let
|
||||||
((completions
|
((completions
|
||||||
(append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:"
|
(append (list "folder:" "path:" "thread:" "id:" "date:" "from:" "to:"
|
||||||
"subject:" "attachment:")
|
"subject:" "attachment:" "mimetype:")
|
||||||
(mapcar (lambda (tag)
|
(mapcar (lambda (tag)
|
||||||
(concat "tag:" (notmuch-escape-boolean-term tag)))
|
(concat "tag:" (notmuch-escape-boolean-term tag)))
|
||||||
(process-lines notmuch-command "search" "--output=tags" "*")))))
|
(process-lines notmuch-command "search" "--output=tags" "*")))))
|
||||||
|
|
Loading…
Reference in a new issue