jv icon indicating copy to clipboard operation
jv copied to clipboard

Feature request: search

Open danvk opened this issue 6 years ago • 2 comments

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 avatar Jul 09 '18 21:07 danvk

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'  -

danvk avatar Jul 13 '18 20:07 danvk

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.

maxzender avatar Jul 24 '18 21:07 maxzender