kelleyma49 / PSFzf

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

feat: `Invoke-FuzzyEdit` - UNC Path Support #201

Open mattcargile opened 1 year ago

mattcargile commented 1 year ago

Fixes #104

Add logic if pwd is a UNC path. Starting a cmd.exe process from a UNC path displays an unecessary warning message so ensuring the pwd is set to $HOME.

Get-FileSystemCmd - Add logic for cmd.exe UNC handling requiring pushd into the UNC path for searching.

Get-EditorLaunch - Use ProviderPath property for Resolve-Path instead of default ToString() output. (resolve-path '\\localhost\c$\users\').ToString() returns Microsoft.PowerShell.Core\FileSystem::\\localhost\c$\users\ which isn't supported by native terminal or visual text editors.