zsh-users
 help / color / mirror / code / Atom feed
* change in zstyle file-patterns handling between 5.5.1 & 5.6(.2)?
@ 2018-09-16 11:50 ml.zsh-workers.454
  2018-09-17  2:27 ` Takeshi Banse
  0 siblings, 1 reply; 6+ messages in thread
From: ml.zsh-workers.454 @ 2018-09-16 11:50 UTC (permalink / raw)
  To: zsh-users

[-- Attachment #1: Type: text/plain, Size: 1268 bytes --]

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

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-09-25  0:13 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-09-16 11:50 change in zstyle file-patterns handling between 5.5.1 & 5.6(.2)? ml.zsh-workers.454
2018-09-17  2:27 ` Takeshi Banse
2018-09-17  5:58   ` dana
2018-09-17 13:01     ` Daniel Shahaf
2018-09-17 21:09       ` dana
2018-09-25  0:13   ` dana

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).