PaulJuliusMartinez / jless

jless is a command-line JSON viewer designed for reading, exploring, and searching through JSON data.
https://jless.io
MIT License
4.61k stars 87 forks source link

Feature Request: It would be neat to somehow show the legnth of a list element. #140

Closed jparsert closed 1 month ago

jparsert commented 7 months ago

Sometimes a Json file has a list element with thousands of elements. In such cases it is not feasible to scroll all the way down to the end of the list in order to read the last index of the list. It would therefore be neat if it was possible to add the length of the list when the list is closed (i.e. folded).

PaulJuliusMartinez commented 7 months ago

Are you running the latest version of jless (0.9.0)? It shows the lengths of lists before the previews:

jless screeshot showing lengths of lists next to array previews
PaulJuliusMartinez commented 1 month ago

Closing because I believe this is now supported, as noted above.