YS-L / csvlens

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

Feature request: Streaming from STDIN #81

Open rzane opened 3 months ago

rzane commented 3 months ago

First off, I really like this tool, so thank you for making it!

Imagine you have a program that slowly generates CSV lines. It'd be nice if csvlens could stream STDIN instead of waiting for it to close.

Compare the behavior of these commands:

$ bash -c 'echo a,b; sleep 2; echo 1,2; sleep 2; echo 3,4' | less
$ bash -c 'echo a,b; sleep 2; echo 1,2; sleep 2; echo 3,4' | csvlens

You'll notice that less starts showing output immediately, but csvlens waits a full 4 seconds to show any output.

YS-L commented 3 months ago

Thanks for the suggestion! Will look into adding support for this.