view csv
Posted on:
ov
can also be used as a csv viewer.
ov -H1 -C -d',' -c --column-rainbow MOCK_DATA.csv
v0.37.0 added the --align
option to align columns.
ov -H1 -C -d',' -c --column-rainbow --align=right MOCK_DATA.csv
No alignment
Alignment (align)
Alignment (align) without wrap
Column shrink
You can also shrink columns by enabling alignment. Column shrink can be toggled by pressing the s key (default) when selecting a column.