{"repo":"gpanders/ijq","free":true,"listed":false,"github":"https://github.com/gpanders/ijq","clone":"git clone https://github.com/gpanders/ijq.git","description":"Interactive jq (mirror)","language":"Go","stars":281,"topics":["jq","command-line","terminal","golang"],"license":"GPL-3.0","category":"cli-tools","readme_excerpt":"ijq === Interactive jq tool. Like [jqplay] for the commandline. [jqplay]: https://jqplay.org Demo ---- Installation ------------ Install from package manager Build from source Install [go]. To install ijq under /usr/local/bin/ simply run make install from the root of the project. To install to another location, set the PREFIX variable, e.g. make PREFIX= /.local install To generate the man page you will also need to have [scdoc] installed. [go]: https://golang.org/dl/ [scdoc]: https://sr.ht/ sircmpwn/scdoc Usage ----- ijq uses [jq] under the hood, so make sure you have that installed first. Read from a file: ijq file.json Read from stdin: curl -s https://api.github.com/users/gpanders ijq Press Return to close ijq and print the current filtered output to stdout. This will also print the current filter to stderr. This allows you to save the filter for re-use with jq in the future: ijq file.json 2 filter.jq # Same output as above jq -f filter.jq file.json Pressing Return also saves the filter to a history file ( $XDG DATA HOME/ijq/history by default). You can browse the history by deleting everything in the filter field. Change the history file used with the history-file setting in $XDG CONFIG HOME/ijq/config (or /.config/ijq/config when $XDG CONFIG HOME is unset). Set history-file to an empty string to disable history entirely. If $XDG DATA HOME is undefined, /.local/share/ijq/history is used. Press Ctrl+s to save the current filter to history without exiting. A confirmation pop","default_branch":null,"files":null,"tree":[],"storefront":"/r/gpanders","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/gpanders/ijq/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}