skim icon indicating copy to clipboard operation
skim copied to clipboard

Skim hangs on input data (tail -f)

Open denisu opened this issue 4 years ago • 2 comments

Tested in 0.6.8

Steps to reproduce: tail -f testfile | sk

Skim hangs after selecting an item until a new line is written to testfile. It works fine in fzf.

denisu avatar Aug 02 '19 14:08 denisu

@denisu This is a known issue. sk won't stop on listening to an infinite stream. Unfortunately currently rust doesn't have a good way to interrupt a blocking read.

Is there any specific reason that the above example(tail -f xxx | sk) is useful for you?

lotabout avatar Aug 03 '19 02:08 lotabout

I see. I use it to lookup and filter specific entries/keywords in a log file, which is still being written to, in real time. Works quite magically together with --tiebreak=-index.

denisu avatar Aug 04 '19 10:08 denisu