Skip to content

Smart-case tab completion has become less smart #7944

@zx8

Description

@zx8

Using 9c413b0.


It's unclear if this is intentional, but it seems like a regression in smart-case tab completion:

Repro

$ mkdir dog Duck Dodo
$ cd do<tab>

Expected

Both dog and Dodo should be offered.

Actual

dog is automatically completed - Dodo is not offered.

Rationale

When using lowercase and tab-completing, it's because I can't remember which directories are lowercase and which are uppercase. When I use uppercase (i.e. cd Do<tab>), it's because I know a particular directory starts with an uppercase letter and am going out of my way to enter an uppercase character, so in this case I would expect only Dodo to be offered.

This would be consistent with how smart-case works with all other CLI tools I use, so I expect this is a regression (since it didn't used to work this way in fish either).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions