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

Support full display of long lines #116

Closed chris-aeviator closed 1 month ago

chris-aeviator commented 1 year ago

Nowadays machine learning (training) datasets often come as JSONL documents. When working with natural language, a typical user utterance or dialog context often comes with all information in one sentence, which leads to long lines.

It would be benefitial if jless could collapse/expand long lines instead of truncating them

Example grafik

nezda commented 1 year ago

Duplicate of https://github.com/PaulJuliusMartinez/jless/issues/34

PaulJuliusMartinez commented 11 months ago

I haven't implemented line wrapping yet, but the ps command in the latest release should be able to help you here. It will print out the full string (with any special characters unescaped) out to the screen. (If you don't want characters to be escaped, you can use pp.)

indigoviolet commented 9 months ago

@PaulJuliusMartinez this is great; it would be awesome if ps could go into the current PAGER or a configurable command. Then I could jump to less, or even jless for nested JSON.

Thank you for this tool!

PaulJuliusMartinez commented 1 month ago

Closing as a duplicate of https://github.com/PaulJuliusMartinez/jless/issues/34.