by pawelduda · 4y ago · 0 comments
echo '' | fzf --preview 'jq {q} < filename.json'
This approach can be generalized to other tools, to some extent: https://github.com/pawelduda/fzf-live-repl
In this case, the empty string is provided as input because we're not interested in selecting options. You can then type your jq filter in fzf's query box and the command will run against filename.json in the preview pane on every kepress (the {q} is your currently typed query).