csvlens icon indicating copy to clipboard operation
csvlens copied to clipboard

Feature request: Streaming from STDIN

Open rzane opened this issue 9 months ago • 1 comments

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.

rzane avatar May 07 '24 00:05 rzane

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

YS-L avatar May 11 '24 04:05 YS-L