Where does fzf.vim actually execute the command, and does fzf wait for input stream finish? #3384
Unanswered
linrongbin16
asked this question in
Q&A
Replies: 1 comment
-
Oh, I just make a simple test on my macOS, and I think the Q2 answer is: fzf does not wait for the input stream finish, it just start immediately and start to searching. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
Q1 - where does fzf.vim actually execute the command line in terminal?
Would you please teach me, which line in fzf.vim is really executing the fzf in terminal?
I'm using macOS + neovim 0.9, and I tried to add some
echo
to print thecommand
variable in fzf.vim#L936, here's the code:and here's the screenshot:
You can see the
fzf
variable is not able to print, because it contains some functions.How could I better debug fzf.vim?
Q2 Does fzf wait for input stream finish?
In my knowledge, usually when I run below command:
rg | fzf
fzf wait use rg's stdout as input stream, wait for rg command finish, then start and search on rg results.
But what is going on when the input stream is quite big and not finish at once?
For example there's a super big file, and it keeps generating new data, needs 10 minutes to finish, when I run below command:
tail -f big_file.txt | fzf
Will fzf wait for the input stream finish? or it immediately start to search on the result?
Beta Was this translation helpful? Give feedback.
All reactions