Open bl-ue opened 3 years ago
This is actually possible without any burden for us. HTTPie uses pygments style's to highlight certain parts of the request and response, and if you implement and register a custom style that processes JQ_COLORS
and use it as the style, you can directly use it from HTTPie by telling it to look for it --style=my-custom-style
.
Whether such a theme should go into the core or not is a product decision, cc: @jakubroztocil. I'd personally say it would be an OK addition.
Checklist
What enhancement would you like to see?
Use
$JQ_COLORS
if set to color JSON output.What problem does it solve?
I've configured
jq
to output colors via$JQ_COLORS
the way I like (1;30:1;33:1;33:1;31:1;32:1;39:1;39
), and it would be super ifhttp
automatically detected that and used them.