Closed belotn closed 2 years ago
Hi
That's a weird one.... When using a Get-Item to Set-Location, powershell pwd is not "correct" and then Invoke-FuzzyGitStatus preview failed...
using a string with set-location is ok
the better way to resolve the issue is to ask ms to correct powershell... The fastest is to change line in function Invoke-PsFzfGitFiles
`$previewCmd = "${script:bashPath} \""" + $(Join-Path $PsScriptRoot 'helpers/PsFzfGitFiles-Preview.sh') + "\"" {-1}" + $(Get-ColorAlways) + " \""$pwd\"""`
to
$previewCmd = "${script:bashPath} \""" + $(Join-Path $PsScriptRoot 'helpers/PsFzfGitFiles-Preview.sh') + "\"" {-1}" + $(Get-ColorAlways) + " \""$($pwd.ProviderPath)\"""
@belotn , please try the 2.5.2 prelease and let me know if that fixes your issue
https://www.powershellgallery.com/packages/PSFzf/2.5.2-alpha
@kelleyma49 It's ok. Works as expected :)
Hi
That's a weird one.... When using a Get-Item to Set-Location, powershell pwd is not "correct" and then Invoke-FuzzyGitStatus preview failed...
using a string with set-location is ok
the better way to resolve the issue is to ask ms to correct powershell... The fastest is to change line in function Invoke-PsFzfGitFiles
to
$previewCmd = "${script:bashPath} \""" + $(Join-Path $PsScriptRoot 'helpers/PsFzfGitFiles-Preview.sh') + "\"" {-1}" + $(Get-ColorAlways) + " \""$($pwd.ProviderPath)\"""