zsh-workers
 help / color / mirror / code / Atom feed
From: Guido Cella <guidocella91@gmail.com>
To: zsh-workers@zsh.org
Subject: [Bug] Doubled completions with suffix aliases and grouping
Date: Sun, 5 Jul 2020 19:46:42 +0200	[thread overview]
Message-ID: <20200705174642.b2frcpxiuscbj27r@aegis.localdomain> (raw)

[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>


             reply	other threads:[~2020-07-05 17:47 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-07-05 17:46 Guido Cella [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200705174642.b2frcpxiuscbj27r@aegis.localdomain \
    --to=guidocella91@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).