4 ms·
Show HN: ijq – Interactive jq
- karlicoss 6y agoVery nice, I want something like that now and then. Although I wonder if one can build a reasonable ad-hoc approximation with fzf and/or entr.
- st0le 6y agoecho '' | fzf --print-query --preview 'jq {q} input.json' This was posted the last time this came up.
- karlicoss 6y agothis is awesome! thanks a lot
- gpanders 6y agoFzf really can do everything :) I will say, though, that a couple things ijq can do that the fzf snippet cannot are autocompletions of JSON keys (very useful IMO when working with large documents) and the ability to read in from stdin, which allows ijq to be used in a pipeline. That said, the fzf solution seems great for quick one-offs!
- e38383 6y agoIs there something I'm missing to get the autocomplete feature? I installed via brew and started ijq file.json