kelleyma49 / PSFzf

A PowerShell wrapper around the fuzzy finder fzf
MIT License
787 stars 34 forks source link

Error when TAB Completion is invoke from network drive or share #94

Closed belotn closed 2 years ago

belotn commented 2 years ago

When invoking Tab completion and CurrentDir ($pwd) is on a network drive or share, $process.Start() fail with error "Directory name is not valid"

psfzf : 2.2.9 Powershell : 5.1

and on powershell 7.2, the shell freeze.

dslgr commented 2 years ago

Ctrl+t, ctrl+r, and alt+c all seem to be broken when on a network share as well. I'm on powershell v7.2.1 and psfzf v2.2.9

dslgr commented 2 years ago

To elaborate, psfzf just does nothing in those scenarios. It works when the pwd isn't a network share.

belotn commented 2 years ago

One solution is to use $pwd.ProviderPath not $pwd.Path

image

98

belotn commented 2 years ago

I confirm that version 2.3.2 correct the issue.