Repository navigation
Location completion should be case-insensitive #1273
Copy link
Copy link
Closed
Labels
OS-LinuxOS-macOSResolution-FixedThe issue is fixed.The issue is fixed.Usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usabilityWG-Interactive-IntelliSensetab completiontab completion
Milestone
Description
Steps to reproduce
On Linux or OS X
- create a folder
Foo - type
cd fooand hitTab
Expected behavior
Completion will correct cd foo into cd ./Foo
Actual behavior
Nothing happens
Environment data
> $PSVersionTable
Name Value
---- -----
PSVersion 5.1.10032.0
PSEdition Linux
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
BuildVersion 3.0.0.0
GitCommitId v0.5.0
CLRVersion
WSManStackVersion 1.0
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1 Reasoning
- we already do that with
/and\on all systems. - fish shell does it and it's very convinient.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
OS-LinuxOS-macOSResolution-FixedThe issue is fixed.The issue is fixed.Usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usabilityWG-Interactive-IntelliSensetab completiontab completion
Activity
andyleejordan commentedon Jul 5, 2016
GNU Readline (and hence Bash) does this do with
set completion-ignore-case on. I think most Linux developers probably use this (I certainly do).andyleejordan commentedon Oct 7, 2016
sergei (@vors) do you think this would be a good Hacktoberfest project? It seems pretty reasonable and non-breaking, as it's an improvement to interactivity of PowerShell completion. I'm not certain, but I don't think this would actually require touching PSReadLine. I don't know much about the tab-completion system though.
vors commentedon Oct 7, 2016
Andy Jordan (@andschwa) yes, that's a very good proposition! I think that implementation would need to be in the engine, but the user preference should be exposed thru PSReadLine.
lzybkr commentedon Oct 7, 2016
Yes, the implementation must be in the engine. As for non-breaking, I agree, but the implementation likes needs to use the file globber that is used for everything else, so care is required.
The engine already has some options which are passed in via a Hashtable.
TabExpansionPlusPlus exposes setting those options here
It's reasonable to also add an option to PSReadline though, or really, just make it the default and not configurable, because it's really not that useful for tab completion to be case sensitive.
vors commentedon Oct 8, 2016
I agree. Can hardly imagine anybody wanting switch to case-sensitive behavior
29 remaining items
SteveL-MSFT commentedon Apr 29, 2018
Just tried it on Ubuntu and, as expected, will need to add code to make it work on a case sensitive filesystem. However, the experience on macOS is SO much better!
pcgeek86 commentedon Apr 30, 2018
This is great news. :)
SRGOM commentedon Mar 30, 2019
This is now in Powershell 6.2 released last week.
SRGOM commentedon Mar 30, 2019
Is there a way to disable this too?
SteveL-MSFT commentedon Mar 30, 2019
S (@SRGOM) Just to be clear, you want an option for tab-completion to be case-sensitive? If so, please open a new issue.
lihuelworks commentedon Jul 28, 2019
I want exactly that