Created
February 13, 2025 19:43
-
-
Save bowmanmike/76a56b095c7bbb8540b14f1ce0b891f0 to your computer and use it in GitHub Desktop.
Interactive JSON Searching with JQ
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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