mu4e: add basic auto-completion for labels

This commit is contained in:
Dirk-Jan C. Binnema
2025-08-26 19:07:23 +03:00
committed by Seth Ladygo
parent e6371ff705
commit 5e87a9c81e

View File

@ -381,6 +381,7 @@ either `future' or `past'."
"from:" "from:"
"lang:" "lang:"
"maildir:" "maildir:"
"label:"
"list:" "list:"
"msgid" "msgid"
"mime:" "mime:"
@ -448,7 +449,11 @@ status, STATUS."
((looking-back "list:\\([a-zA-Z0-9/.@]*\\)" nil) ((looking-back "list:\\([a-zA-Z0-9/.@]*\\)" nil)
(list (match-beginning 1) (list (match-beginning 1)
(match-end 1) (match-end 1)
mu4e--lists-hash)))) mu4e--lists-hash))
((looking-back "label:\\([a-zA-Z0-9/.@]*\\)" nil)
(list (match-beginning 1)
(match-end 1)
mu4e-labels-list))))
;;; Interactive functions ;;; Interactive functions
(defun mu4e-search-change-sorting (&optional field dir) (defun mu4e-search-change-sorting (&optional field dir)