kelleyma49 / PSFzf

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

fix: invoke-fuzzyedit directory resolve #100

Closed mattcargile closed 2 years ago

mattcargile commented 2 years ago

Commit Message

join-path replaced with resolve-path to handle absolute or relative paths. dir outputs absolute paths while find/fd output relative paths. also fixed $files check for Count instead of $null, because the variable is instantiated as an empty array and therefore isn't $null

Closes #99

mattcargile commented 2 years ago

It would be nice if we could merge in PR #98 too. I've pulled in the changes from it here and added an additional commit to handle UNC paths.

mattcargile commented 2 years ago

UNC Paths aren't working all that well in my newest build using straight Invoke-FuzzyEdit. It has something to do with the shelling out to cmd.exe I suppose. Maybe we don't need to shell out to cmd.exe if using FZF_DEFAULT_COMMAND or -UseFd?