antonmedv / fx

Terminal JSON viewer & processor
https://fx.wtf
MIT License
19k stars 440 forks source link

[Feature request]Show full-line preview of collapsed lines #321

Open smjure opened 2 months ago

smjure commented 2 months ago

The current fx version, when one collapses lines, shows just few characters: image

Would it be possible to show full lines, e.g.: image

In this way, it's easy to go to line of interest, expand it and work on it.

Hence on, one question please, how to open a json file in collapsed mode?

If interested, the letter pic is made by peco package. Furthermore, it would be nice to have vertical splitted terminal, where on the left are the json lines and on the right is the expended selected json line. Sth like: image

antonmedv commented 2 months ago

What about adding a split preview? Same I have in walk: https://github.com/antonmedv/walk preview-mode

smjure commented 2 months ago

Thank you for the answer. I'm familiar with walk, nice program, but one can just preview the files (and go into the file - better then to use fx directly), whereas I need to reach the json fields in a large json structs of particular json-file line.

antonmedv commented 2 months ago

I mean, we can use it with the same logic just to preview a part of a message of JSON.