Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Invoke-FuzzyEdit - UNC Path Support #201

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

mattcargile
Copy link
Contributor

@mattcargile mattcargile commented Nov 26, 2022

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.

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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Invoke-FuzzyEdit - Cmd.exe UNC Handling
1 participant