jless
jless copied to clipboard
Feature request: add search/filter à la jq
jless
is awesome, thank you very much for your work on it!
Description of the feature:
At the moment jless
search works à la Vim, searching back and forth for patterns with /?
; in particular the documentations says:
The search is not performed over the original input, but over a single-line pretty formatted version of the input JSON.
would it be possible to introduce some sort of jq
grammar where we can filter via, say
.key <-- get values of nested key
[] <--- get array elements
select(.key|test("<regex>") <--- search for regex and return key or value
and similar? Or is this already present and I overlooked it?
Thank you again for the great work!
Options available for this:
This could be an alternate implementation of #80. Or maybe #80 could be a hot-key for this filter.