maxzender/jv

Feature request: search

Opened this issue · 2 comments

danvk commented

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.

danvk commented

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.