using gum table
or gum pager
as pager for csv data
#458
Replies: 2 comments 2 replies
-
Hi,
And maybe, while this is not exactly what you're looking for, you can get a somewhat more readable table in the gum pager by doing the following: cat my.csv | sed $'s/,/\t/g' | gum pager --soft-wrap |
Beta Was this translation helpful? Give feedback.
-
Ideally I presume users would expect pagers to have the same behaviour as I agree that implementation details ought to be agree by the charmbracelet team, hopefully they jump in with some ideas and/or suggestions. |
Beta Was this translation helpful? Give feedback.
-
I am trying to use either of the two options
table
orpager
as terminal pager to display tabular data (or to pipe the results of tabular data into them): however, I have the impression that both of them come a little short.For instance:
gum table
/
inless
or others)? I have not been able to find out how to do so (and at the moment this is limiting me from using it fully)-w X,Y,Z...
, which assumes you know already the shape of the data you are displaying)? Often we do not know in advance how many/which columns we want to expand (even here I presume such option is there, I could not find it in the docs?)gum pager
equivalently, the pager could be used instead of the table, however
less --header 1
, namely having sticky headers)?How are you using the two options above (if at all) to display tabular data?
Beta Was this translation helpful? Give feedback.
All reactions