Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make fzf work in standard Git Bash Term #3806

Closed
wants to merge 1 commit into from

Conversation

Konfekt
Copy link
Sponsor Contributor

@Konfekt Konfekt commented May 19, 2024

Script provided by @knutze

Addresses #2798

@junegunn
Copy link
Owner

The approach looks quite similar to what we've been doing in fzf-tmux, and the script was recently rewritten in native Go code. I'll see if we can do the same for this. If that's possible,

  • it will work without extra configuration
  • it will work not just on bash, but also on other shells

@junegunn junegunn self-assigned this May 20, 2024
junegunn added a commit that referenced this pull request May 20, 2024
Close #3806

Known limitation:
* --height cannot be used
@junegunn
Copy link
Owner

Can you test 573df52? It seems to work for me fine. Because it's using named pipes, it doesn't block even when the source command takes a while to complete.

./fzf
ls | ./fzf
(sleep 5; ls) | ./fzf

Attaching the binary built from the source.

fzf.exe.zip

@Konfekt
Copy link
Sponsor Contributor Author

Konfekt commented May 20, 2024

I can confirm that this release works fine in Git Bash Term under Windows 10 without the bash script work around.
(It works also fine with the Bash work around. Removing the new exe, the pipe is broken again.)

@junegunn
Copy link
Owner

Cool, I'll close this then and include the patch in the next release.

@junegunn junegunn closed this May 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants