3 ms·
One of the most useful ways I've found to learn/test queries in `jq` is by using it as a semi-REPL via fzf with `--preview`: echo '' | fzf --print-query --
by ryannevius 6y ago
One of the most useful ways I've found to learn/test queries in `jq` is by using it as a semi-REPL via fzf with `--preview`:
echo '' | fzf --print-query --preview 'cat example.json | jq {q}'
Here's a rough example of it in action: https://asciinema.org/a/y4WGyqcz1wWdiyxDofdPXKtdC https://asciinema.org/a/y4WGyqcz1wWdiyxDofdPXKtdC
- ctippett 6y agoWow, thank you for sharing this. I had no idea you could do that with fzf.