jless icon indicating copy to clipboard operation
jless copied to clipboard

Support full display of long lines

Open chris-aeviator opened this issue 1 year ago • 3 comments

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

chris-aeviator avatar Mar 20 '23 11:03 chris-aeviator

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

nezda avatar Apr 22 '23 11:04 nezda

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.)

PaulJuliusMartinez avatar Jul 17 '23 03:07 PaulJuliusMartinez

@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!

indigoviolet avatar Sep 28 '23 21:09 indigoviolet

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

PaulJuliusMartinez avatar Jun 01 '24 18:06 PaulJuliusMartinez