pimutils / todoman

✅ A simple, standards-based, cli todo (aka: task) manager.
https://todoman.readthedocs.io
ISC License
489 stars 78 forks source link

Add support for ansi named colors #462

Open Misterio77 opened 2 years ago

Misterio77 commented 2 years ago

Hey!

I frequently change my terminal colors, and setting RGB colors for my todo folders often leads to unreadable text.

I thought it would be nice to offer an option for setting one of the usual 16 terminal colors, in addition to the 24-bit rgb ones. So, i've added support for them.

It works for all the 16 ansi colors (including the 8 bright ones).

This possibly fixes https://github.com/pimutils/todoman/issues/297

Here's how it looks like (using dracula scheme, and colors red, cyan, and bright purple (which my terminal renders as bold purple) for the folders): image

Misterio77 commented 2 years ago

Thanks for the feedback.

I wasn't aware the color setting was something standardized. I guess my provider doesn't support syncing colors.

Khal has a config option for manually setting colors, so I guess something similar could be implemented here, would that make sense?