krasa / GrepConsole

IntelliJ plugin - https://plugins.jetbrains.com/plugin/7125
Apache License 2.0
437 stars 57 forks source link

Grep - use ANSI color codes from the source console #119

Closed Vampire closed 3 months ago

Vampire commented 6 years ago

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.

danielgomezrico commented 3 years ago

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

krasa commented 2 years ago

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.