robbyrussell/oh-my-zsh — Issue #943: confusing tab completion behavior
Author: kevinburke
Created: 2012-02-19 06:17:36+00:00
State: open

With the default settings in completion.zsh you need to tab twice to get ZSH to complete a filename, even when there's no ambiguity.

I love Zsh's tab completions, but it's frustrating when there is only one possible option and I have to tab twice to tab complete the filename.

For example, if this is a list of files in a directory:

- a.txt
- b.txt
- x.txt

and I type `cat x` in ZSH, I get this at the prompt:

$ cat x
x.txt

I have to TAB again to get the value. I traced it to

zstyle '*' single-ignored show

in completion.zsh. Changing `show` to `complete` solved the problem.

Coming from Bash, this was an annoying thing.