BurntSushi / xsv

A fast CSV command line toolkit written in Rust.
The Unlicense
10.35k stars 324 forks source link

Feature request for xsv table: Add option to display content multiline #250

Open ad-si opened 3 years ago

ad-si commented 3 years ago

This would allow to print test.csv

name,description
chair,A separate seat for one person with a back and four legs.
table,A piece of furniture with a flat top and one or more legs.

in following way:

$ xsv table --max-width 40 test.csv
name    description
chair   A separate seat for one person 
        with a back and four legs.
table   A piece of furniture with a flat 
        top and one or more legs.
BurntSushi commented 3 years ago

I think xsv flatten would probably be better for this specific example.

Otherwise, this doesn't seem like a bad idea but might be a tad tricky to implement.