3 ms·
echo '' | fzf --print-query --preview 'jq {q} input.json' This was posted the last time this came up.
by st0le 6y ago
echo '' | 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!