lotabout / skim

Fuzzy Finder in rust!
MIT License
5.05k stars 180 forks source link

Skim hangs on input data (tail -f) #209

Open denisu opened 5 years ago

denisu commented 5 years ago

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.

lotabout commented 5 years ago

@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?

denisu commented 5 years ago

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.