Support forward slashes in network share (UNC path) completion (#17111)#17117
Support forward slashes in network share (UNC path) completion (#17111)#17117iSazonov merged 4 commits intoPowerShell:masterfrom
Conversation
|
@sba923 Please add test(s). |
This is an interactive feature, how can I possibly add (CI) tests? |
|
@sba923 See TabCompletion.Tests.ps1 file for examples. |
Sorry, I'd missed that. Now I need to find out how to locally run the tests with the one I've just added, but that is probably documented somewhere. |
Done. |
| } | ||
|
|
||
| It "Tab completion UNC path with forward slashes" -Skip:(!$IsWindows) { | ||
| $homeDrive = $env:HOMEDRIVE.Replace(":", "$") |
There was a problem hiding this comment.
It is not used now and can be removed, yes?
There was a problem hiding this comment.
Correct. The test case is needed to validate the PR's change, but $homeDrive is not needed anymore. My bad. Removing that.
|
This PR has Quantification details
Why proper sizing of changes matters
Optimal pull request sizes drive a better predictable PR flow as they strike a
What can I do to optimize my changes
How to interpret the change counts in git diff output
Was this comment helpful? 👍 :ok_hand: :thumbsdown: (Email) |

PR Summary
This PR implements support for forward slashes in partial network share (UNC paths) names when performing tab completion (Close #17111)
PR Context
This makes tab completion easier to use e.g. when using French layout keyboards, where entering a forward slash (
Shift+:) is way easier than entering a backslash (AltGr+8).PR Checklist
//hostname/...in addition to the canonical\\hostname\...form.h,.cpp,.cs,.ps1and.psm1files have the correct copyright headerWIP:or[ WIP ]to the beginning of the title (theWIPbot will keep its status check atPendingwhile the prefix is present) and remove the prefix when the PR is ready.(which runs in a different PS Host).