Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Does anyone use the todo.txt command line interface (todotxt.com)? I would like it so that when I type todo ls to show my tasks, it will highlight the +contexts and @projects with colors. How do I do that?

share|improve this question

2 Answers 2

I am not sure when this feature was introduced, but with the current version of todo.sh, you can enable the coloring in your config file (normally todo.cfg) by setting the variables COLOR_PROJECT and COLOR_CONTEXT to some value:

export COLOR_PROJECT=$LIGHT_BLUE
export COLOR_CONTEXT=$GREEN

(for example)

If this is enough for your purpose, you don't have to install an external color filter.

share|improve this answer

The original color highlighting filter was posted on the todo.txt mailing list. And this Gist contains the version I once fixed for Gina, the initiator of todo.txt.

I have also written an extended version, published as part of my todo.txt-cli-ex extension.

Any of these must be installed in todo.cfg via

export TODOTXT_FINAL_FILTER=/path/to/colorSymbols
share|improve this answer
    
your extension seems not to work with the current todo.sh anymore: {awk: calling undefined function gensub input record number 1, file source line number 62} –  david Nov 5 '13 at 0:27
1  
@david My extension requires GNU awk (gawk), because it uses its extensions. That's your problem. –  Ingo Karkat Nov 5 '13 at 7:25
    
Ahh, thanks for that! –  david Nov 5 '13 at 11:47

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.