gpanders / ijq

Interactive jq (mirror)

Home Page:https://sr.ht/~gpanders/ijq

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot inherit original colors from terminal

xgrommx opened this issue · comments

Hello, I have some problem with colors

image

Will be better if it inherit original colors or even have some configuration file with several options for colors or smth else.

ijq uses jq under the hood, including colors. If you check the jq man page, you should see a section with instructions on how to modify the colors that jq uses.

Also note that until version 0.2.3 (just released), there was a bug in the upstream dependencies that ijq uses where bold colors would not be displayed properly in some cases. So you may also want to consider upgrading to that version to see if that has any effect.

I also added a note to the README with info on configuring the colors.

fwiw, I'm unclear what controls this.
image

jq itself is fine:
image

I'm using Solarized Light in Iterm, though even other not-strictly-dark themes seem a bit off:
image

It looks like tview, the TUI application that ijq depends on, defaults to using a dark background. Looking into this now.

@clebio Please test the changes on master and let me know if you are still having the issue.

Closing this for now as I assume it's fixed, open a new issue or file a ticket at https://todo.sr.ht/~gpanders/ijq if the issue persists.

Yup, that seems to have fixed it! Sorry for the delay, didn't see your older comments, for some reason.