zsh-workers
 help / color / mirror / code / Atom feed
* [Bug] Doubled completions with suffix aliases and grouping
@ 2020-07-05 17:46 Guido Cella
  2020-07-05 18:09 ` Bart Schaefer
  0 siblings, 1 reply; 7+ messages in thread
From: Guido Cella @ 2020-07-05 17:46 UTC (permalink / raw)
  To: zsh-workers

[Bug] Doubled completions with suffix aliases and grouping
When completion grouping is enabled and a directory contains only regular files whose suffixes have aliases defined, file completions are listed twice. This seems to be caused by the fact that when there are no executables or directories to complete, zsh completes every file in the directory (grouped as "executable file"), and only later adds files that match suffix aliases.

This can be reproduced with:
alias -s txt=$EDITOR
autoload compinit
compinit
zstyle ':completion:*' group-name ''
zstyle ':completion:*:descriptions' format '%F{yellow}%B%d%b%f'
mkdir /tmp/foo
cd /tmp/foo
: >{1..9}.txt
./<Tab>


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

end of thread, other threads:[~2020-07-07 18:00 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-05 17:46 [Bug] Doubled completions with suffix aliases and grouping Guido Cella
2020-07-05 18:09 ` Bart Schaefer
2020-07-05 19:24   ` Guido Cella
2020-07-07  4:51     ` Bart Schaefer
2020-07-07  6:57       ` Guido Cella
2020-07-07 17:20         ` Bart Schaefer
2020-07-07 17:59           ` Guido Cella

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).