Skip to content

Instantly share code, notes, and snippets.

@bowmanmike
Created February 13, 2025 19:43
Show Gist options
  • Save bowmanmike/76a56b095c7bbb8540b14f1ce0b891f0 to your computer and use it in GitHub Desktop.
Save bowmanmike/76a56b095c7bbb8540b14f1ce0b891f0 to your computer and use it in GitHub Desktop.
Interactive JSON Searching with JQ
#!/bin/sh
jq "." -C "$1" |
fzf --ansi --phony --reverse \
--bind "change:reload(jq {q} -C $1)" \
--bind "enter:execute-silent(echo {} | xsel)" \
--bind "ctrl-k:reload(jq {q}' | keys' -C $1)"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment