-
Notifications
You must be signed in to change notification settings - Fork 391
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[RFE] Change the direction of display in header view #2759
Comments
Changing the order just in the display is non-trivial., I recommend filtering by recent date in your query, and then ordering that in the desired direction. |
Thanks @djcb ! I wanted to avoid doing that in Elisp as I suppose that would be slow. I'm trying to see whether it's possible to reorder the recent message through Xapian queries but don't find an answer yet. Also, the thread handling when query with reverse gets more complicated: messages in sub-threads are always newer than the parent message, but siblings are reversed from new to old. This was actually one of the main the motivations of this RFE as if I use I wonder whether there is a way to let |
There are ways to do in on the Xapian level, but it's quite a bit of rework to implement that, hook it up with mu4e, test it etc., so, not planning this right now. Hence my recommendation to use filtering instead, even if that's not 100% what you want. I suspect doing it in mu4e (the display side) is easier. It should be fast enough. Anyway, I'll move this RFE to the IDEAS.org file, so we won't forget it; thank you for the suggestion! |
Is your feature request related to a problem? Please describe.
mu4e-search-change-sorting
acceptsascending
anddescending
for sorting orders, wheredescending
is the default so that you get the latest emails first which makes sense. However, the display of the mails is also from new to old. Personally I'd like to see the mail displayed from old to new (like in Gnus), but still prefer to query newer mails if possible.Describe the solution you'd like
I did a rough code search and it looks like mu4e performs an
mu find
query[1][2] and display the result in header view. It may be possible be able to reverse the list in elisp but it could be slow. So it's probably worth considering adding adisplay-direction
to mu to be able to reverse the results on demand.Describe alternatives you've considered
(mu4e-search-change-sorting :date 'ascending)
searchs the old mails first so not quite desireable.[1] https://github.com/djcb/mu/blob/master/mu4e/mu4e-headers.el#L807
[2] https://github.com/djcb/mu/blob/master/mu4e/mu4e-server.el#L557
The text was updated successfully, but these errors were encountered: