Skip to content

Case-insensitive tab completion #3978

@benmullins

Description

@benmullins

I'd like to suggest an option to make tab completion fully case-insensitive. What I mean, for example, is the following situation: I have in my home directory two subdirectories, one starting with uppercase P and the other with lowercase p. For the last year or so I've been using zsh with oh-my-zsh, and I've grown accustomed to getting into the directory starting with uppercase P by typing cd p, hitting tab twice, and choosing the correct directory of the two.

Besides that inconvenience, the current behavior feels somewhat inconsistent to me. If I type, for example, cd N, it matches directories starting with lowercase n, and cd v matches directories starting with uppercase V --- because I don't have directories starting with that letter in the other case. So essentially it matches case-insensitively sometimes but not always; specifically iff there are no case-sensitive matches. This confused me a fair bit when I first discovered the behavior, since I was using fish for a little while before I ran into the cd p issue I described, and it took me a while to realize why it was immediately auto-completing to the lowercase p directory without giving me a choice.

I understand why this behavior might be undesirable to some people since Unix filesystems are generally case-sensitive, and I know that configurability is the root of all evil and all, but I found this to be something of a pain point while trying fish.

fish version: 2.5.0, stock standard from Homebrew
OS: macOS 10.12.4
Terminal: Terminal.app

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions