GrepConsole icon indicating copy to clipboard operation
GrepConsole copied to clipboard

Grep - use ANSI color codes from the source console

Open Vampire opened this issue 7 years ago • 2 comments

The way I configured log4j it outputs log lines colored with ANSI color codes.

The IJ console is capable of properly showing these colors, also different according to light-theme / dark-theme so that you don't end up with black text on black background.

Example with light theme "Default" (GrepConsole Highlighting disabled): grafik

Same region with dark theme "Darcula" (GrepConsole Highlighting disabled): grafik

Now when opening a grep console, the coloring is lost. grafik

It would be nice if the grep console could also show the ANSI colors the same ways as the standard console shows them, also adaptive to light vs. dark theme.

Vampire avatar Jul 12 '18 13:07 Vampire

This feature would be awesome, Im using https://pub.dev/packages/fimber and it prints things with this format without any effort.

danielgomezrico avatar Sep 23 '20 16:09 danielgomezrico

Themes are now supported by this way: https://github.com/krasa/GrepConsole/issues/177 image

Grepping with colors is not supported(possible) by IntelliJ API, perhaps I will find some way later.

krasa avatar Oct 25 '21 16:10 krasa