3 ms·
Consider adding a code snippet showing a.csv output. I had to watch a video just to see text.
by semireg 5y ago
Consider adding a code snippet showing a.csv output. I had to watch a video just to see text.
- GrayShade 5y agoNot OP, but there's a screenshot under https://github.com/alexhallam/tv#1-na-comprehension https://github.com/alexhallam/tv#1-na-comprehension. Which is actually worse for screen reader users, I suppose.
- Someone 5y agoAnd a list of options. Reading the first 80 lines of https://github.com/alexhallam/tv/blob/main/src/main.rs 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 5y agoI 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.