mu4e: implement :hide-if-no-unread

Make mu4e-maildir-shortcut and mu4e-bookmarks understand a property
:hide-if-no-unread~, which hides the maildir/bookmark from the main-view
if there are no unread messages which the corresponding query.
This commit is contained in:
Dirk-Jan C. Binnema
2025-03-08 11:36:40 +02:00
parent 5608892349
commit a15e640eb7
7 changed files with 100 additions and 38 deletions

View File

@ -105,9 +105,13 @@ Each of the list elements is a plist with at least:
Optionally, you can add the following:
`:name' - name of the maildir to be displayed in main-view.
`:hide' - if t, the shortcut is hidden from the main-view.
`:hide-if-no-unread' - if it t, the shortcut is hidden from
the main-view if it contains no unread messages.
You can also use:
`:hide-unread' - do not show the counts of unread/total number
of matches for the maildir in the main-view, and is implied
from `:hide'.
from `:hide'.
For backward compatibility, an older form is recognized as well: