devtodo2 icon indicating copy to clipboard operation
devtodo2 copied to clipboard

A visual difference between done and not-done tasks

Open DenLilleMand opened this issue 7 years ago • 3 comments

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.

DenLilleMand avatar Jul 12 '17 19:07 DenLilleMand

That seems like a pretty good idea. Another option might be to dim the colours. I'm not sure which is better supported.

alecthomas avatar Jul 13 '17 03:07 alecthomas

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.

captura de pantalla de 2017-07-14 19-17-07

mpinloz avatar Jul 14 '17 17:07 mpinloz

Alright, i will start working on this then :)

DenLilleMand avatar Jul 15 '17 23:07 DenLilleMand