jless
jless copied to clipboard
Support full display of long lines
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
Duplicate of https://github.com/PaulJuliusMartinez/jless/issues/34
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 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!
Closing as a duplicate of https://github.com/PaulJuliusMartinez/jless/issues/34.