-
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
How about prettier colors in the headers view? #1355
Comments
+1 |
@Alexander-Miller I just tested your code and OMG, it makes my header view so much more pleasing and also, I think, easier to navigate. |
@Alexander-Miller agreed! This looks great, Alexander! |
@Alexander-Miller and @djcb just to let you know that I've stopped seeing the colors display correctly from commit 3715bb0 and onwards. Has anyone else experienced the same? |
@averter did you solve the issue? I would like colored columns as well. |
@pkazmier unfortunately no. I was only able to backtrack from where the issue came from. This feature was really great to have/see while it was functioning. |
When did that happen? I am on v1.4.13 and my config still works just fine.
I would've been ready to make a proper PR, I was just wanted some feedback that such a change would be wanted in the first place. |
That's why I asked if anyone else experienced the same (see my previous post). It happened in commit 3715bb0 on the master branch. If I switch branches everything looks ok.
I think that everyone is in "thumbs up" mode for this change :-). For me, I just recently added this to my init file (setq mu4e-headers-fields '((:human-date . 12)
(:flags . 6)
(:mailing-list . 10)
(:from-or-to . 22)
(:subject))) and noticed that you don't allocate a color to |
I wouldn't necessarily want my headers view to be more colorful, but surely don't want to stop other people from doing how. However, I've found the current methods significantly slow down the display. |
It'd all be optional of course.
How did you measure things? I tried putting a timer around My guess is either I don't have enough messages or I am measuring the wrong thing, probably on account of something being asynchronous. Can you point me in the right direction for creating a proper benchmark?
Probably just another branch that needs to be added to the big |
Ah, I judged it just by the time it took to fill my screen; but actually measuring would be better; however note that measuring So perhaps a first step is adding something for that :) I'll take a look. |
Thanks for this. Incidentally, after a recent update the error in process filter: mu4e~headers-field-apply-basic-properties: Symbol’s function definition is void: case I couldn't find much info about this command online. Thoughts? |
In 27 if you really want to use it you can manually load |
Indeed, it seems to be deprecated also in E 26.3. There's no need to load |
When applying this patch, do you guys see unread emails highlighted somehow? |
This solution is not working anymore in 1.6.0 Cheers and Thanks for all the work! |
I've pulled the new version of mu now, so I am working on an update. This issue has been stuck for a while now - for understandable reasons, I'd be just as cautious about performance implications if something like this was proposed in treemacs - so I think it's in everyone's best interest if I publish this as an external package. I'll come back to close this issue once I have something on melpa. |
New code is now available at https://github.com/Alexander-Miller/mu4e-column-faces. Feedback is very much welcome. Next step is getting published on melpa. |
Nice work! Obligatory note that relying on Oh, |
The previous version worked for 2 years. I think that's an acceptable pace for me.
Done that and refreshed a couple times. Here's the result with mu4e-column-faces:
and here's vanilla mu4e:
I am on Emacs 28, and native compilation (and maybe
So all in all performance does not look to be a problem. |
mu4e-column-faces is now available on Melpa 🎉 |
I played around with other mail clients and one thing I really liked about notmuch is that every column has its own face, while in mu4e the entire line's face depends on the flags of the message. So I propose to bring the same behaviour to mu4e. The changes would be reasonably small, and you could still have the subject's face depend on the flags.
I've had success making the necessary changes to mu already, so if you'd like to go ahead with this I can clean my code up and provide a PR. Here's an example of what the headers could then look like. Imo it's much nicer to look at than a single color throughout.
If you want to see for yourself here's my code so far:
The text was updated successfully, but these errors were encountered: