mu4e: support hiding bookmarks from main-screen/bookmarks

Using the :hide t property on a bookmark plist. The bookmark is still
available throught the completion mechanism.
This commit is contained in:
Dirk-Jan C. Binnema
2020-01-13 12:25:24 +02:00
parent c95cd3c1aa
commit 1631d98b9e
4 changed files with 45 additions and 30 deletions

View File

@ -142,10 +142,11 @@ clicked."
;; TODO: it's a bit uncool to hard-code the "b" shortcut...
(mapconcat
(lambda (bm)
(mu4e~main-action-str
(concat "\t* [b" (make-string 1 (plist-get bm :key)) "] "
(plist-get bm :name))
(concat "b" (make-string 1 (plist-get bm :key)))))
(unless (plist-get bm :hide)
(mu4e~main-action-str
(concat "\t* [b" (make-string 1 (plist-get bm :key)) "] "
(plist-get bm :name))
(concat "b" (make-string 1 (plist-get bm :key))))))
(mu4e-bookmarks) "\n")
"\n\n"
(propertize " Misc\n\n" 'face 'mu4e-title-face)