Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Allow keys/array strings to be different color than object keys #3024

Open
ORESoftware opened this issue Jan 29, 2024 · 0 comments
Open

Comments

@ORESoftware
Copy link

ORESoftware commented Jan 29, 2024

this would be a small display change and lot of bang for buck - right now color for strings is controllable only for all "strings" -

export JQ_COLORS_ERROR='1;31'
export JQ_COLORS_NULL='1;30'
export JQ_COLORS_FALSE='0;31'
export JQ_COLORS_TRUE='0;32'
export JQ_COLORS_NUMBER='0;33'
export JQ_COLORS_STRING='0;35'
export JQ_COLORS_ARRAY='1;37'
export JQ_COLORS_OBJECT='1;37'
export JQ_COLORS_KEY='0;33'

I am looking for two more:

where arrays contain strings:

export JQ_COLORS_ARRAY_STRING_VALS='1;37'

and for map keys (where map keys are strings):

export JQ_COLORS_ARRAY_MAP_KEY_STRING='1;37'

that would control the colors of strings where they appear in array:

and where they appear in map keys (not object keys). Of course map keys become object keys in JSON format, so this might be a dumb request.

So I am hoping for the colors to be different here:

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants