From: Eric Cook <llua@gmx.com>
To: zsh-users@zsh.org
Subject: Duplicate results in _python - (Re: [MINOR BUG] Duplicate results in tab-menu)
Date: Thu, 23 Jun 2022 10:42:13 -0400 [thread overview]
Message-ID: <0c939d76-d9ff-e684-cbc5-70dac285491d@gmx.com> (raw)
In-Reply-To: <CAGS3e0adVWdp3p7cbjkvH84P6PL7-G2YzcAcu2zq435n+mLk9Q@mail.gmail.com>
On 6/23/22 05:54, Morten Nissov wrote:
> Hi,
>
> Others in the IRC hadn't experienced this bug so I'm asking here.
>
> In some cases, when I tab to open the menu everything is duplicated, see below for example
> image.png
> I've found this happens when my .zshrc contains
>
> |zstyle ':completion:*:matches' group 'yes' zstyle ':completion:*' group-name '' zstyle ":completion:*" list-dirs-first true autoload -U compinit && compinit
> |
>
>
> Best regards,
> Morten
Just the group-name and list-dirs-first styles being empty string and true are needed to cause the problem.
with ''python foo'' _python makes its way to _normal, returns (seemingly true) then compsys calls _default to
complete -default- for some reason that i am unsure of.
as a workaround disabling list-dirs-first for python would prevent the duplicates from happening:
zstyle ':completion::complete:python<->#(.<->)#::*' list-dirs-first false
but even with that, compsys seems to still tries to complete -default-.
next prev parent reply other threads:[~2022-06-23 14:42 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-06-23 9:54 [MINOR BUG] Duplicate results in tab-menu Morten Nissov
2022-06-23 14:42 ` Eric Cook [this message]
2022-06-24 5:41 ` Duplicate results in _python - (Re: [MINOR BUG] Duplicate results in tab-menu) Bart Schaefer
2022-07-17 3:48 ` Bart Schaefer
2022-06-24 14:40 ` Morten Nissov
2022-06-26 5:15 ` Bart Schaefer
2022-06-26 5:18 ` Bart Schaefer
2022-06-27 8:00 ` Morten Nissov
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=0c939d76-d9ff-e684-cbc5-70dac285491d@gmx.com \
--to=llua@gmx.com \
--cc=zsh-users@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).