ArthurSonzogni / json-tui

A JSON terminal UI made in C++
MIT License
353 stars 16 forks source link

Add possibility to unroll and collapse all structured data in selected column at once in table view #25

Closed prajnoha closed 2 years ago

prajnoha commented 2 years ago

If we're in table view and if we have json input that contains structured data (arrays, objects...) in certain columns, then by default, the arrays are collapsed and one needs to press "Mouse::Left" or "enter" for each such value in the column to have them all unrolled. It would be very practical to have a single keybinding that would unroll all such values in currently selected column at once (and vice-versa - to collapse them all at once).

ArthurSonzogni commented 2 years ago

Maybe +/- will unroll/roll at least one more nested level. This sounds like a nice feature. Thanks for the suggestion!