Open Yukigaru opened 1 year ago
For the sake of performance, there's a limit on how much will be colorized. I would suggest switching to the pretty-print view (press Shift+P
) and doing the search in there.
Optimization out of the JSON colorization is pretty understandable. But the search itself is one of core features, and when you can't see results of a search it becomes hard to use. Please consider search results highlighting even in long lines at places where colorization is disabled.
Example:
There's a huge line with a JSON (it's wrapped), and you can see the last ~20% are not colorized. If you search for
1685615249507568
(it's the last value in the json, in the ending), lnav will find it, but will not highlight (thus it's hard to understand where the found pattern is).lnav version: v0.11.1, v0.8.5
To Reproduce Put this to a file:
Open, and search for
1685615249507568
.