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

Make object key color configurable (close #1739, #1791, #2638) #2703

Merged
merged 1 commit into from
Jul 18, 2023

Conversation

itchyny
Copy link
Contributor

@itchyny itchyny commented Jul 12, 2023

This PR resolves #1739 by allowing user to configure object key at the 8th element of JQ_COLORS. The patch is based on the #1791 and #2638, and my comment #1791 (comment). Also I optimized colors lookup by using enum to int conversion (already used for type comparison). Closes #1791 and closes #2638.

@itchyny itchyny added this to the 1.7 release milestone Jul 12, 2023
@itchyny itchyny force-pushed the jq-color-object-key branch 3 times, most recently from a3e8a10 to 951e04e Compare July 12, 2023 23:37
Copy link
Member

@emanuele6 emanuele6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@nicowilliams nicowilliams merged commit 0b558f6 into jqlang:master Jul 18, 2023
24 checks passed
@nicowilliams
Copy link
Contributor

Thanks!

@itchyny
Copy link
Contributor Author

itchyny commented Jul 19, 2023

Thank you!

@roshal
Copy link

roshal commented Sep 13, 2023

finally awesome

JQ_COLORS=36:31:32:33:97:90:90:00

image

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

Successfully merging this pull request may close these issues.

Can't specify FIELD_COLOR in JQ_COLORS env var
4 participants