I was searching for an interactive jq editor when I came across this repo [1], which had an intriguing suggestion for a CLI using only fzf:<p>echo '' | fzf --print-query --preview "cat *.json | jq {q}"<p>This sent me down a rabbit hole, and I discovered just how incredibly configurable fzf is.<p>For instance:<p>- `--bind=ctrl-y:execute-silent(jq {q} $tempfile | pbcopy)`: You can bind custom keys to execute non-default behaviors, like copying the current selection or `echo`-ing.<p>- `--query="."`: Start fzf with an initial query (e.g., `.` for jq queries) to streamline the experience.<p>- `--preview-window=top:90%:wrap`: You can configure fzf into different layouts, behaviors, and ANSI colors.<p>- `--header=$'ctrl+y : copy JSON\nctrl+f : copy filter\nenter : output\nesc : exit' \`: fzf supports multi-line header to provide instructions or context for the user right in the interface.<p>[1]: <a href="https://github.com/fiatjaf/awesome-jq?tab=readme-ov-file#command-line">https://github.com/fiatjaf/awesome-jq?tab=readme-ov-file#com...</a>