@@ -840,12 +840,15 @@ instance:
840
840
:query " list:mu-discuss.googlegroups.com AND date:7d..now" ))
841
841
@end lisp
842
842
843
- There are optional keys @t {:hide } to hide the bookmark from the main menu, but
844
- still have it available (using @key {b })) and @t {:hide-unread } to avoid
845
- generating the unread-number; that can be useful if you have bookmarks for slow
846
- queries. Note that @t {:hide-unread } is implied when the query is not a string;
847
- this for the common case where the query function involves some user input,
848
- which would be disruptive in this case.
843
+ There are optional keys @code {:hide } to hide the bookmark or maildirs from the
844
+ main menu, but still have it available (using @key {b })), and
845
+ @code {:hide-if-no-unread } to hide it if there are no unread messages.
846
+
847
+ To customize the display, there is also @code {:hide-unread } to avoid generating
848
+ the unread-number; that can be useful if you have bookmarks for slow queries.
849
+ Note that @code {:hide-unread } is implied when the query is not a string; this
850
+ for the common case where the query function involves some user input, which
851
+ would be disruptive in this case.
849
852
850
853
There is also the optional @code {:favorite } property, which at most one bookmark
851
854
should have; this bookmark is highlighted in the main view, and its
@@ -2180,18 +2183,36 @@ be instructive:
2180
2183
" List of pre-defined queries that are shown on the main screen.
2181
2184
2182
2185
Each of the list elements is a plist with at least:
2183
- :name - the name of the query
2184
- :query - the query expression
2185
- :key - the shortcut key.
2186
-
2187
- Optionally, you add the following:
2188
- :hide - if t, bookmark is hidden from the main-view and speedbar.
2189
- :hide-unread - do not show the counts of unread/total number
2190
- of matches for the query. This can be useful if a bookmark uses
2191
- a very slow query. :hide-unread is implied from :hide.
2192
- "
2186
+ `:name' - the name of the query
2187
+ `:query' - the query expression string or function
2188
+ `:key' - the shortcut key (single character)
2189
+
2190
+ Optionally, you can add the following:
2191
+
2192
+ - `:favorite' - if t, monitor the results of this query, and make
2193
+ it eligible for showing its status in the modeline. At most
2194
+ one bookmark should have this set to t (otherwise the _first_
2195
+ bookmark is the implicit favorite). The query for the `:favorite'
2196
+ item must be unique among `mu4e-bookmarks' and
2197
+ `mu4e-maildir-shortcuts' .
2198
+ - `:hide' - if t, the bookmark is hidden from the main-view and
2199
+ speedbar.
2200
+ - `:hide-if-no-unread' - if t, the shortcut is hidden from
2201
+ the main-view if it contains are no unread messages.
2202
+
2203
+ You can also use:
2204
+ - `:hide-unread' - do not show the counts of
2205
+ unread/total number of matches for the query in the main-view.
2206
+ This can be useful if a bookmark uses a very slow query.
2207
+
2208
+ `:hide-unread' is implied from `:hide' .
2209
+
2210
+ Note: for efficiency, queries used to determine the unread/all
2211
+ counts do not discard duplicate or unreadable messages. Thus, the
2212
+ numbers shown may differ from the number you get from a normal
2213
+ query."
2193
2214
:type '(repeat (plist))
2194
- :group 'mu4e )
2215
+ :group 'mu4e-bookmarks )
2195
2216
@end lisp
2196
2217
2197
2218
You can replace these or add your own items, by putting in your
@@ -2303,14 +2324,18 @@ maildirs (folders) very quickly --- for example, getting to the @t{/lists}
2303
2324
folder only requires you to type @kbd {jl }, then change to @t {/work } with
2304
2325
@kbd {jw }.
2305
2326
2306
- While in queries you need to quote folder names (maildirs) with spaces in
2307
- them, you should @emph {not } quote them when used in
2308
- @code { mu4e-maildir-shortcuts }, since @t {mu4e } does that automatically for you.
2327
+ While in queries you need to quote folder names (maildirs) with spaces in them,
2328
+ you should @emph {not } quote them when used in @code { mu4e-maildir-shortcuts },
2329
+ since @t {mu4e } does that automatically for you.
2309
2330
2310
2331
The very same shortcuts are used by @kbd {M-x mu4e-mark-for-move } (default
2311
2332
shortcut @key {m }); so, for example, if you want to move a message to the
2312
2333
@t {/archive } folder, you can do so by typing @kbd {ma }.
2313
2334
2335
+ For further customization, you can use @code {:hide }, @code {:hide-if-no-unread },
2336
+ @code {:hide-unread } and @code {:favorite } properties, just like for
2337
+ @ref {Bookmarks and Maildirs }.
2338
+
2314
2339
@node Other search functionality
2315
2340
@section Other search functionality
2316
2341
0 commit comments