jaq icon indicating copy to clipboard operation
jaq copied to clipboard

Are the output colors configurable?

Open voodookiidoo opened this issue 4 months ago • 3 comments

Is there some sort of a config file, or maybe an env variable that is responsible for the exact colors of the output?

voodookiidoo avatar Aug 08 '25 12:08 voodookiidoo

Hi @voodookiidoo, congratulations for opening a π issue!

To answer your question: No, there currently isn't. However, I'd welcome a PR that implements the JQ_COLORS environment variable in jaq.

01mf02 avatar Aug 11 '25 12:08 01mf02

could do, but the output logic is too complicated for me, i don't even know where and how to start at first glance i can at least make some sort of a parser and config style holder for it to be used in the code, but that's all i got :(

voodookiidoo avatar Aug 11 '25 22:08 voodookiidoo

OK, don't worry. In any case, I currently have some changes in my PR #284 that will impact how colors are handled, which should make this change easier. Look here: https://github.com/01mf02/jaq/pull/284/files#diff-41a33254c79b32d21e9b97f4c119a6079b4727848e44c0fbb27e68b623d83f3d. It's probably better to wait for JQ_COLORS support until I merged that PR.

01mf02 avatar Aug 12 '25 08:08 01mf02