5 comments

[ 3.1 ms ] story [ 27.3 ms ] thread
Very 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.

    echo '' | fzf --print-query --preview 'jq {q} input.json'
This was posted the last time this came up.
this is awesome! thanks a lot
Fzf 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!

Is there something I'm missing to get the autocomplete feature? I installed via brew and started

  ijq file.json