Skip to content

Location completion should be case-insensitive #1273

Closed

Description

@vors

Steps to reproduce

On Linux or OS X

  • create a folder Foo
  • type cd foo and hit Tab

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.

Activity

  1. added
    Usability(LEGACY) Helps filter issues that might be higher priority because they directly affect usability
    on Jul 4, 2016
  2. andyleejordan commented on Jul 5, 2016

    @andyleejordan
    Member

    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).

  3. modified the milestone: on Aug 4, 2016
  4. andyleejordan commented on Oct 7, 2016

    @andyleejordan
    Member

    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.

  5. vors commented on Oct 7, 2016

    @vors
    CollaboratorAuthor

    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.

  6. lzybkr commented on Oct 7, 2016

    @lzybkr
    Contributor

    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.

  7. vors commented on Oct 8, 2016

    @vors
    CollaboratorAuthor

    I agree. Can hardly imagine anybody wanting switch to case-sensitive behavior

  8. 29 remaining items

  9. removed
    Up-for-GrabsUp-for-grabs issues are not high priorities, and may be opportunities for external contributors
    on Apr 29, 2018
  10. SteveL-MSFT commented on Apr 29, 2018

    @SteveL-MSFT
    Member

    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!

  11. pcgeek86 commented on Apr 30, 2018

    @pcgeek86

    This is great news. :)

  12. SRGOM commented on Mar 30, 2019

    @SRGOM
    Contributor

    This is now in Powershell 6.2 released last week.

  13. SRGOM commented on Mar 30, 2019

    @SRGOM
    Contributor

    Is there a way to disable this too?

  14. SteveL-MSFT commented on Mar 30, 2019

    @SteveL-MSFT
    Member

    S (@SRGOM) Just to be clear, you want an option for tab-completion to be case-sensitive? If so, please open a new issue.

  15. lihuelworks commented on Jul 28, 2019

    @lihuelworks

    I want exactly that

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions