junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
63.78k stars 2.37k forks source link

`execute-silent` slight delay on apple silicon #3683

Closed samsze0 closed 5 months ago

samsze0 commented 6 months ago

Info

Problem / Steps to reproduce

Run fzf --bind='start:execute-silent(pwd)+pos(0),change:execute-silent(pwd),focus:execute-silent(pwd)+execute-silent(pwd)' in zsh shell and execute-silent has a slight delay

https://github.com/junegunn/fzf/assets/86842365/dd47a987-bf64-45bc-acc7-ae20436a7141

samsze0 commented 6 months ago

Confirmed just this is still an issue for me if I clone and built the binary myself ;( I am guessing this is probably due to being on my company's laptop.

junegunn commented 6 months ago

execute-silent runs synchronously so it blocks the UI until the $SHELL process for the command finishes. Maybe you thought it was non-blocking because of its -silent suffix? It just means that you won't see the output of the command unlike execute, it doesn't mean the command runs in the background.

samsze0 commented 5 months ago

I think the delay is abnormally long tho. I don't have this issue on my older macbook 🤔

samsze0 commented 5 months ago

I will close this issue as I think this issue is solely caused by my shell