Commit graph

55 commits

Author SHA1 Message Date
201e28b256 First attempt at an ~256 rainbow colormap
Indicentally, bugfix passing numerical values
2013-04-07 01:13:57 +02:00
c025c32a3d Conditional import of babel, fallback to std parsing 2013-04-03 19:02:04 +02:00
a2d3feb301 doc update 2013-04-03 19:02:01 +02:00
bac1b71b78 colormap for linear scale numbers
When using the 'scale' colormap, parse matches as decimal numbers
(taking your locale into account) and apply the rainbow colormap linearly
between the given SCALE=min,max

Implement issue #6
2013-04-03 18:43:05 +02:00
3a51a71014 More harmonious cmake/g++ themes
CMake theme less colorful, in cyan/green, color errors.
Better g++ messages parsing.
2013-03-26 23:38:16 +01:00
b8c38a5653 Add the "none" color. Useful when grouping. 2013-03-26 23:02:52 +01:00
c6b735ccfa Remove on_stderr from the README v0.1 2013-03-25 21:20:57 +01:00
05828ced2e Git ignore *.pyc 2013-03-25 21:18:30 +01:00
fb3944a22b Refactor the non-blocking read/write parts. Remove on_stderr
This basically introduce the machinery to always call stdin_write for
themes, source code and colorup.

Remove the useless option on_stderr, that is gratefully handled by the shell.
2013-03-25 21:16:23 +01:00
aef7da95b4 Add the -a switch to input the whole stream instead of readlining it 2013-03-25 20:39:06 +01:00
dc38703fd6 Merge pull request #10 from np/examples
Example of the perm template
2013-03-24 16:05:02 -07:00
Nicolas Pouillard
9edce1f645 Example of the perm template 2013-03-24 23:59:13 +01:00
5b52c7eceb Refactor themes to avoid imports
Enhancement #9
2013-03-24 23:54:02 +01:00
c9cabb3666 use upper case P in examples 2013-03-23 22:39:57 +01:00
2e7dc83e22 Merge pull request #8 from np/examples
Update the examples (using quotes instead of escapes)
2013-03-23 14:38:13 -07:00
45872df75c Use pygments in the g++ theme 2013-03-23 18:12:31 +01:00
e3af4cbe0b bugfix: chdir to import themes 2013-03-23 18:11:52 +01:00
9da74a1202 Add the possibility to color a source code SUBSTRING
`echo "There is an error in 'static void Functor::operator()( EOT& indiv ) { return indiv; }' you should fix it" | colout "'(.*)'" Cpp monokai`
2013-03-23 17:52:32 +01:00
f201fa0e70 Sort lexers for a better help 2013-03-23 17:50:24 +01:00
add176306a Merge pull request #7 from thefab/flake8_fixes
flake8/pep8 fixes
2013-03-23 09:16:56 -07:00
Nicolas Pouillard
10034271c8 Update the examples (using quotes instead of escapes) 2013-03-23 17:00:02 +01:00
Fabien MARTY
c7656f35e3 flake8/pep8 fixes (except for the max size of a line and visual indent warnings) 2013-03-23 13:30:05 +01:00
8fdbe570b5 bugfix: initialize a default empty list of lexers 2013-03-23 09:38:07 +01:00
937c2a450c Add a JSON theme 2013-03-23 00:23:50 +01:00
7858211361 List available themes/languages in the help
Preload themes and pygments lexers at import.
2013-03-23 00:12:30 +01:00
d444c1868c Add support for source code coloring with pygments
Themes/source are available with a switch.
2013-03-22 23:59:42 +01:00
e583e54bf3 Read stdin as a stream, avoid blocking read/write 2013-03-22 22:52:53 +01:00
8e73d1512f Add a g++ theme 2013-03-22 22:52:24 +01:00
c0da324726 Add a theme for cmake 2013-03-22 22:25:24 +01:00
6ef62a644f Add minimal theme support, and "perm" as an example 2013-03-22 21:19:02 +01:00
nojhan
c891bda94a Add the --colormap option to build adhoc colormaps
Use the given list of comma-separated colors as a colormap (cycle the colors at each match).
Support of 256 colors mode colormaps.
2013-03-05 21:53:38 +01:00
nojhan
da1c2209e7 Add the --groups option
For color maps (like "rainbow"), iterate over matching groups in the pattern instead of over patterns.

Fix #4
2013-03-04 22:16:59 +01:00
nojhan
eba7c1462d Add "Random" for 255 colors mode
Thus we can specify "random" for 8 colors mode, or "Random" for 255 colors.
2013-03-03 09:11:40 +01:00
nojhan
811ef56bcb BUGFIX: correct code in 256 colors mode
Thanks duck typing.
2013-03-03 09:08:21 +01:00
119bba5bb5 Add random and rainbow
Use "random" as a color or a style to pick a random one for each pattern.
Use "rainbow" as a color to alternate colors in rainbow gradient.
Fix #1
2013-03-01 00:12:40 +01:00
Johann Dreo
941d7c2ef9 Cleaner API, more comments, generator, toward py3k
Use simpler names for modules variables.
Detailled commets for each functions, with doctests.
Add a generator proxy.
Add a dirty argument parser that do not depend of argparse.
Separate args parser in private functions.
Clean the code.
2013-02-07 12:10:23 +01:00
nojhan
2e0fd09b43 print each line as soon as it is read 2012-07-12 14:01:59 +02:00
nojhan
bbc0cf5aa3 bugfix readme formating 2012-07-09 10:16:25 +02:00
nojhan
6371125431 rename readme for github display 2012-07-09 09:50:59 +02:00
nojhan
be7cb6b253 examples with 256 colors codes 2012-04-02 22:39:23 +02:00
nojhan
efc1195413 replace 'standard' style name by 'normal' 2012-04-02 22:32:24 +02:00
nojhan
1a880bde94 handle multiple styles when grouping 2012-04-02 21:58:06 +02:00
nojhan
9946b58285 handle multiple colors when grouping 2012-04-02 21:50:29 +02:00
nojhan
a9d934490c copyright issues 2012-03-31 17:58:26 +02:00
nojhan
5117fd92fc a complete man page 2012-03-31 15:45:46 +02:00
nojhan
60c86f9182 use argparse, comments in english 2012-03-31 15:11:27 +02:00
nojhan
fea7e2c03f now supports coloring only the grouping parts of the regex, if any 2012-03-31 14:40:46 +02:00
nojhan
ad010765d8 description in README 2012-03-31 14:39:20 +02:00
nojhan
6a33ab321d remove old file 2012-03-31 13:10:07 +02:00
nojhan
fe7b0850e6 new name 2012-03-31 13:08:18 +02:00