mirror of https://github.com/djcb/mu.git
mu4e/search: clarify sortable fields (threading)
When threads are enabled, only sorting by date is possible; make this clearer in the UI. Fixes #2507.
This commit is contained in:
parent
867f3205e2
commit
60b1a5dff7
|
@ -410,16 +410,22 @@ status, STATUS."
|
||||||
FIELD is the field to sort by; DIR is a symbol: either
|
FIELD is the field to sort by; DIR is a symbol: either
|
||||||
`ascending', `descending', t (meaning: if FIELD is the same as
|
`ascending', `descending', t (meaning: if FIELD is the same as
|
||||||
the current sortfield, change the sort-order) or nil (ask the
|
the current sortfield, change the sort-order) or nil (ask the
|
||||||
user)."
|
user).
|
||||||
|
|
||||||
|
When threads are enabled (`mu4e-search-threads'), you can only sort
|
||||||
|
by the `:date' field."
|
||||||
(interactive)
|
(interactive)
|
||||||
(let* ((choices '(("date" . :date)
|
(let* ((choices ;; with threads enabled, you can only sort by *date*
|
||||||
("from" . :from)
|
(if mu4e-search-threads
|
||||||
("list" . :list)
|
'(("date" . :date))
|
||||||
("maildir" . :maildir)
|
'(("date" . :date)
|
||||||
("prio" . :prio)
|
("from" . :from)
|
||||||
("zsize" . :size)
|
("list" . :list)
|
||||||
("subject" . :subject)
|
("maildir" . :maildir)
|
||||||
("to" . :to)))
|
("prio" . :prio)
|
||||||
|
("zsize" . :size)
|
||||||
|
("subject" . :subject)
|
||||||
|
("to" . :to))))
|
||||||
(field
|
(field
|
||||||
(or field
|
(or field
|
||||||
(mu4e-read-option "Sortfield: " choices)))
|
(mu4e-read-option "Sortfield: " choices)))
|
||||||
|
|
Loading…
Reference in New Issue