purebred-mua / purebred

A terminal based mail user agent based on notmuch
GNU Affero General Public License v3.0
139 stars 19 forks source link

ui: enable tag replacement in thread and mail list #494

Closed frasertweedale closed 1 year ago

frasertweedale commented 1 year ago

Add a "tag replacement map" config. Update tags widget rendering to gather the replacements and render them together, ahead of remaining tags. This enables users to define symbolic replacements for particular tags.

The default config replaces flagged, attachment and replied with emoji. We also export and ASCII variant of this map. Users can extend or replace the map via the TweakConfig plugin.

Fixes: https://github.com/purebred-mua/purebred/issues/492

frasertweedale commented 1 year ago

@romanofski it seems that the emoji width causes some problems in the test environment. I'll switch to using the ASCII replacement map in our test config. But I won't get to that right away so this PR is on hold for now.

Feel free to continue testing / playing with the new feature.

romanofski commented 1 year ago

@romanofski it seems that the emoji width causes some problems in the test environment. I'll switch to using the ASCII replacement map in our test config. But I won't get to that right away so this PR is on hold for now.

Feel free to continue testing / playing with the new feature.

Tried it out. I like it!

frasertweedale commented 1 year ago

@romanofski I fixed the tests. If you're happy with this change, :ship:

romanofski commented 1 year ago

yeah I very much am :shipit: