Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

change in zstyle file-patterns handling between 5.5.1 & 5.6(.2)?



Hi

While I was trying out how to separate folders and files when completing `./<tab>` (based on [1]), I noticed a difference in behaviour between 5.5.1 and 5.6.2.

- **minimal_zshrc.sh**:

	```
autoload -Uz compinit && compinit
zstyle ':completion:*:*:*:*:*' group-name ''
zstyle ':completion:*:descriptions' format '%B%F{red}%d%f%b'
zstyle ':completion:*:*:-command-:*:*' file-patterns '*(#q-*):executables:Executables *(-/):directories:Directories'
	```

- 5.5.1:

	```
/usr/local/Cellar/zsh/5.5.1/bin/zsh -f
% source minimal_zshrc.sh
% ./<tab>
Executables
some_script*
Directories
directory/  folder/
	```

- 5.6.2:

	```
/usr/local/Cellar/zsh/5.6.2/bin/zsh -f
% source minimal_zshrc.sh
% ./<tab>
executable file
directory/   some_script*  folder/
	```
  Same issue for 5.6 & 5.6.1

Seems like zsh is using a different group in 5.6 ... but a quick look through the **NEWS** file in the zsh repo did not give me any idea why the versions differ in their behaviour here.
Is this an intentional change?
How can I get the separation back in 5.6 (ideally in a way that also works in 5.5)?


[1]: https://superuser.com/questions/1326184/why-does-a-value-hyphen-in-tag-order-style-prevent-matching-of-the-exec

Messages sorted by: Reverse Date, Date, Thread, Author