Lurker News

Comments (136) 27 threads

Show all comments

Showing thread 5 of 27

semireg3 replies#
Consider adding a code snippet showing a.csv output. I had to watch a video just to see text.
Someone#
And a list of options. Reading the first 80 lines of https://github.com/alexhallam/tv/blob/main/src/main.rs was in some sense more educational than the readme.

It, for example, allowed me to make an educated guess as to the answer to the question “how does this handle huge files?”. It by default only reads 25 lines.
(That makes the example from the header:

   cat diamonds.csv | head -n 35 | tv
a bad example. You shouldn’t need that head in-between.

However, line 167 says

  //.take(row_display_option + 1)
That seems to indicate this reads the entire file into memory, and that guess wasn’t that educated at all.
flusteredBias#
I have some work to do on the README. I will show the output better. The difficulty with showing the output only is that it does not capture the coloring. Maybe I will show the output, or add a picture, or have an animated gif. Maybe all three.