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
    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. added and removed
    WG-Interactive-PSReadLine
    on Oct 7, 2016
  8. vors commented on Oct 8, 2016

    @vors
    CollaboratorAuthor

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

  9. added
    Hacktoberfest
    on Oct 12, 2016
  10. removed
    Hacktoberfest
    on May 22, 2017
  11. 29 remaining items

  12. removed
    Up-for-Grabs
    on Apr 29, 2018
  13. 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!

  14. pcgeek86 commented on Apr 30, 2018

    @pcgeek86

    This is great news. :)

  15. SRGOM commented on Mar 30, 2019

    @SRGOM
    Contributor

    This is now in Powershell 6.2 released last week.

  16. SRGOM commented on Mar 30, 2019

    @SRGOM
    Contributor

    Is there a way to disable this too?

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

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

OS-LinuxOS-macOSResolution-FixedUsabilityWG-Interactive-IntelliSense

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions