mirror of
https://github.com/d99kris/nmail.git
synced 2026-04-26 17:56:00 +03:00
[GH-ISSUE #61] [Enhancement] More readable emails (colourised quoted text) #55
Labels
No labels
bug
enhancement
pull-request
question
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/nmail#55
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @sc0ttj on GitHub (Nov 22, 2020).
Original GitHub issue: https://github.com/d99kris/nmail/issues/61
Originally assigned to: @d99kris on GitHub.
In aerc, one of the few things I liked about it was that is parsed the contents of emails, then colourised it:
>) is greyed out a bit+or-) are red and greenI don't care about the colored diffs so much, but it would be nice if nmail greyed out the replied text as bit (like editors do with comments) so that email with lots of replies and back n forths in them were a lot more readable at first glance.
Personally, I think it would be a nice enhancement over the alpine UI, while still in keeping with the simple nmail UI aesthetic - although I do understand this may be out of scope, and may well introduce extra complexity (users wanting to set a preferred colour, terminals not showing colours the same, etc, etc).
@d99kris commented on GitHub (Nov 23, 2020):
Hi @sc0ttj - thanks for the suggestion.
Yeah, I've been a bit reluctant to step away from the plain UI inspired by alpine / pine.
But the greyed out replied text is a neat idea, let me give it a try. Assuming it's easily implemented I think this feature would make sense.
@d99kris commented on GitHub (Nov 28, 2020):
I've implemented basic support for grayed out quoted lines (lines starting with
>). I "solved" the complexity by making it an optional feature disabled by default. To enable it, edit~/.nmail/ui.confand set:The functionality was tested OK in Ubuntu
gnome-terminaland macOSTerminal.app.I quickly tried in the default terminal in fossapup64 but it seems that terminal does not support setting user-specified (hex) colors. So the log file
~/.nmail/log.txtwill have a warning:Not sure which terminal you are typically using?
If you encounter issues, please let me know, we can try add support for setting one of the 16 standard colors instead of only user-customized by hex.