mu4e: tweak query-items refreshing

Try to make it a bit less confusing. The baseline becomes a bit more
implicit, and a `g` in the main view refreshes / resets.
This commit is contained in:
Dirk-Jan C. Binnema
2023-01-16 00:10:12 +02:00
parent eb691f8f31
commit 22b2d44b96
5 changed files with 15 additions and 24 deletions

View File

@ -128,8 +128,11 @@ If ITEMS does not yet have a favorite item, pick the first."
(propertize (number-to-string count)
'help-echo "Total number")))))
(defun mu4e--query-items-refresh()
"Get the latest query data from the mu4e server."
(defun mu4e--query-items-refresh (&optional reset-baseline)
"Get the latest query data from the mu4e server.
With RESET-BASELINE, reset the baseline first."
(when reset-baseline
(mu4e--query-items-reset-baseline))
(mu4e--server-queries
;; note: we must apply the rewrite function here, since the query does not go
;; through mu4e-search.