YS-L / csvlens

Command line csv viewer
MIT License
2.47k stars 41 forks source link

Feature request: smarter wrap mode for columns which are text fields #64

Closed confluence closed 5 months ago

confluence commented 6 months ago

I'm using this tool to browse a file in which one column is text content of arbitrary length (and the other columns are metadata). Turning on word wrap is very useful, but the wrap is done at a fixed column width with no regard for word boundaries, and it would be great if there were an additional wrap mode that we could cycle through which wrapped at appropriate word boundaries, or at least just at spaces (possibly falling back to breaking very long strings without spaces in the middle).

YS-L commented 5 months ago

I added an option -W to toggle wrapping by words. Let me know if that is useful!

confluence commented 5 months ago

Thanks! That is useful.