jv
jv copied to clipboard
Feature request: search
Neat tool! Simple but effective.
One nice addition would be if you could hit /
to search ala less or vim. This would expand all folds in the path to the matches.
You can do this using code folding and vim. Here's a command…
$ jq . foo.json | vim -c 'set syntax=json' -c 'set foldmethod=syntax' -c 'foldopen' -
Thanks, Dan! That’s a great idea, hope I can soon find some time to try this :) Of course, you’re also welcome to give it a shot if you like.