Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add colours to output #6

Open
lelutin opened this issue Nov 24, 2009 · 1 comment
Open

Add colours to output #6

lelutin opened this issue Nov 24, 2009 · 1 comment

Comments

@lelutin
Copy link
Owner

lelutin commented Nov 24, 2009

Add a means to colourize the output to sys.stdout. It should take the form of an API that the actions can use or simply enable (and then the tomtom classes would call upon the necessary functions to add colour markup.

Examples of uses:

  • search -- colourize the note name and the line in two different colours. also mark the searched term to make it stand out.
  • list -- colourize the changed-date, the note name and the tags in different colours.
  • display -- colourize the note name and the tags in different colours. the separator between notes should also be made to stand out.
@lelutin
Copy link
Owner Author

lelutin commented Feb 24, 2010

To make something clean for this, the best way would be to exploit the new setuptools plugins. I'd need to search for a hook function or something.

Or a generic way to tokenize the text and pass it on to colouring methods..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant