Alex Burka
c8a24b0aa8
correctly detect a numeric color argument
2013-04-06 20:58:15 -04:00
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
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
b8c38a5653
Add the "none" color. Useful when grouping.
2013-03-26 23:02:52 +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
5b52c7eceb
Refactor themes to avoid imports
...
Enhancement #9
2013-03-24 23:54:02 +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
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
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
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
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
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
fe7b0850e6
new name
2012-03-31 13:08:18 +02:00