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

Mouse. Collapse all / Collapse after level 1 / Expand all #160

Open gl-yziquel opened 1 month ago

gl-yziquel commented 1 month ago

Hi.

Just discovered the jless tool. Love the idea.

Moreover, it works with the mouse in the terminal.

However, the clicking cycle for expansion is somewhat unfortunate. Click -> Fold all -> Click -> Expand all.

To investigate the json, it would be better to have a cycle like Click -> Fold all -> Click -> Fold all after first level -> Click -> Expand all.

I'm sure this issue is more or less a duplicate of other folding issues, but I saw none talking about the mouse.