From 5e87a9c81e01556b20c161bf94aab6ebb99ccefc Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 26 Aug 2025 19:07:23 +0300 Subject: [PATCH] mu4e: add basic auto-completion for labels --- mu4e/mu4e-search.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/mu4e/mu4e-search.el b/mu4e/mu4e-search.el index 4c597dae..165dc08d 100644 --- a/mu4e/mu4e-search.el +++ b/mu4e/mu4e-search.el @@ -381,6 +381,7 @@ either `future' or `past'." "from:" "lang:" "maildir:" + "label:" "list:" "msgid" "mime:" @@ -448,7 +449,11 @@ status, STATUS." ((looking-back "list:\\([a-zA-Z0-9/.@]*\\)" nil) (list (match-beginning 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 (defun mu4e-search-change-sorting (&optional field dir)