kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
752 stars 35 forks source link

`fzf` based functions failing #216

Closed mattcargile closed 1 year ago

mattcargile commented 1 year ago

General usage of Invoke-FuzzyGitStatus and Invoke-PsFzfRipgrep show Command failed when inside fzf. For instance, ALT + S using Invoke-FuzzyGitStatus fails. Invoke-PsFzfRipgrep fails from the get go.

I've tried PowerShell Desktop and Core to the same effect. I guess there is some difference in fzf or rg versions. I'm on 0.37.0 (2023012) for fzf and ripgrep 13.0.0 (rev af6b6c543b).

My next steps is to attempt to execute the commands that are built inside the module manually. I think these commands could use some Verbose or Debug output.

mattcargile commented 1 year ago

I finally figured this out. It was due to setting my $env:SHELL to pwsh -NoLogo. This breaks the functionality in Windows and in *nix. Need to set as cmd.exe or /usr/bin/bash ( or others on that platform ) on *nix.

https://github.com/junegunn/fzf/issues/3296