Commit graph

93 commits

Author SHA1 Message Date
Johann Dreo
d7dc047a2a feature #33: handle resources dirs. bugfix duplicated themes
Add -T and -P options to search for themes/palettes in additional directories.
Raise an error if duplicated themes name are found.
2013-05-27 18:11:41 +02:00
7ce5ad1eba Add an option to print all the available features 2013-05-26 21:30:39 +02:00
81e2cc98ad feature #32: debug mode 2013-05-26 21:13:13 +02:00
0a4f9f12ed Feature #31: better error handling
Add dedicated exception and exit on specific error code.
Also put resource loading in separated functions.
2013-05-26 17:21:36 +02:00
baf412ea5b Compress colormaps converted from RGB to ANSI
Avoid having two duplicated consecutives colors when using colormaps.
2013-05-26 16:50:04 +02:00
3f59b8c31f Add GIMP palettes support, refactoring
You can now use GIMP palette file as a colormap, by using its filename as a color.
Add the well known Matlab jet72 palette (jet72.gpl).

Group functions in sections.
2013-05-26 16:14:23 +02:00
02a79ff10e Refactoring: move stdin/out up to __main__
Use explicit stream variable in inner functions,
sys streams are thus only in use in the upper layer.
2013-05-26 10:44:16 +02:00
84f34a5cf4 Forgot to remove a test print 2013-05-25 18:58:33 +02:00
Johann Dreo
3f108692e8 Color code after a "note: candidate is/are:" 2013-05-23 14:45:03 +02:00
Johann Dreo
1968aa0197 Use python3's importlib instead of __import__ 2013-05-23 14:15:41 +02:00
Johann Dreo
1fed20cba7 Expect formatted json as input, blue numbers
This patch avoid coloring what's inside item's strings, but expect a formatted input.
2013-05-17 11:13:53 +02:00
Johann Dreo
d04a9d85a9 json separators in yellow, color double quotes 2013-05-16 14:29:52 +02:00
Johann Dreo
9f77a5b54d Separate g++ log with blue section lines
Every time g++ use "in/at", it starts a new error/warning paragraph.
Coloring those lines in blue mades it easier to spot messages.
2013-05-16 08:53:13 +02:00
3354a49395 Merge pull request #29 from orzrd/master
Add new installation method for pypi/ubuntu/gentoo and hotfix a python3 install error
2013-05-14 23:59:03 -07:00
orzrd
a278f9796f Update colout
hotfix python3 install error
2013-05-09 23:00:11 +08:00
orzrd
df52773c4e Update README.md
Add installation method
2013-05-09 22:55:08 +08:00
John Anderson
0d8606fd65 hotfix python3 install error 2013-05-05 21:12:59 +08:00
894fab9c68 bugfix #27: use default msg marker if no localization found 2013-05-05 00:30:43 +02:00
64454e42f1 Use python3 everywhere 2013-05-05 00:20:24 +02:00
d91c333d63 Merge pull request #25 from martin-ueding/launcher
Add launcher script
2013-05-04 15:16:29 -07:00
aa86e2a151 Merge pull request #23 from xudifsd/master
add requirement package in setup, also add installation section in README.md
2013-05-04 15:16:11 -07:00
Martin Ueding
c9bd98b414 Change License to GPL 3 only
It has been 3+ previously, but the remainder of the project is using 3
only.
2013-04-30 16:43:06 +02:00
Martin Ueding
e199f38698 Call Python 3 2013-04-30 16:42:36 +02:00
Martin Ueding
177c11fd9a Add launcher script
I tried to package this program in Ubuntu, and found that it has no
startup script. So I added a `colout` script that gets installed into
the scripts directory with the `setup.py`.
2013-04-28 15:53:00 +02:00
49cd8ab292 Merge pull request #22 from np/jsonarrays
Color JSON array markers '[' and ']'
2013-04-22 11:37:35 -07:00
Xu Di
37934e9266 colout/colout.py uses python3, whereas it really needs python2,
also add requirement in setup, makes it auto-install requirement
package.
2013-04-22 13:34:06 +08:00
Nicolas Pouillard
b85b727606 Color JSON array markers '[' and ']' 2013-04-20 00:21:24 +02:00
Johann Dreo
b470c81d01 Simplify the cmake theme, use "scale" instead of adhoc regex 2013-04-16 15:49:53 +02:00
Johann Dreo
c9eb7a1380 cmake theme localization: do not use english word 2013-04-16 09:34:25 +02:00
Johann Dreo
fa76dcdf76 Better g++ theme & localization
The g++ theme now check the locale to use unicode quotation mark if necessary.
Start of error paragraphs are highlighted in green.
Colout now use python3 for a simpler unicode support.
2013-04-16 09:32:08 +02:00
Johann Dreo
465ce93393 Bold line number in the g++ theme 2013-04-15 21:54:45 +02:00
Johann Dreo
64c50cca00 Localized g++ theme
Use gettext to get the GCC localized messages
2013-04-15 21:42:56 +02:00
Johann Dreo
f2df87b88c No greedy match on quotes for the g++ theme 2013-04-15 21:29:59 +02:00
16b6627cd7 Merge pull request #20 from oczkers/setup
add setup.py
2013-04-09 11:32:03 -07:00
Piotr Staroszczyk
8df684f3a0 add setup.py 2013-04-09 19:12:26 +02:00
0588676066 Merge pull request #16 from durka/lexer-index-error
fix IndexError during lexer collection
2013-04-06 23:43:28 -07:00
Alex Burka
c8a24b0aa8 correctly detect a numeric color argument 2013-04-06 20:58:15 -04:00
Alex Burka
76866c2330 fix IndexError during lexer collection 2013-04-06 20:56:51 -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
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