Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Does anyone use the todo.txt command line interface ( 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

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 anymore: {awk: calling undefined function gensub input record number 1, file source line number 62} – david Nov 5 '13 at 0:27
@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

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


(for example)

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

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .