devtodo2
devtodo2 copied to clipboard
A visual difference between done and not-done tasks
I was thinking if we should do a 'strikethrough' effect on the tasks that are done, it is supported in a lot of terminals. Could use the ANSI escape sequence:
\e[9m strikedthrough \e[0m
If the terminal used doesn't have support, we could do a fallback that does the following, albeit pretty ugly:
'T-e-s-t t-a-s-k t-e-x-t'
I can do a PR that does this if there is any interest.
That seems like a pretty good idea. Another option might be to dim the colours. I'm not sure which is better supported.
I like the idea and I suggest not to change the way it shows in terminals that don't support strikethrough for the moment. Later we can do a module to obtain the terminal properties to improve the functionalities, for example, the application could choose colors by default depending on terminal's background. Now, with white background the tasks with medium priority can not be read well.
Alright, i will start working on this then :)