From: Morten Nissov <morten.c.nissov@gmail.com>
To: Eric Cook <llua@gmx.com>
Cc: zsh-users@zsh.org
Subject: Re: Duplicate results in _python - (Re: [MINOR BUG] Duplicate results in tab-menu)
Date: Fri, 24 Jun 2022 16:40:19 +0200 [thread overview]
Message-ID: <CAGS3e0ZkDoqfhL4209p13hErDJ4RYNA2OzFaROyKGvAVJox1bw@mail.gmail.com> (raw)
In-Reply-To: <0c939d76-d9ff-e684-cbc5-70dac285491d@gmx.com>
[-- Attachment #1: Type: text/plain, Size: 1405 bytes --]
Regarding the workaround, as far as I can see `zstyle
':completion::complete:python<->#(.<->)#::*' list-dirs-first false` doesn't
actually fix the problem.
`zstyle ':completion::complete:python3::*' list-dirs-first false` does
however, though obviously only for python3.
Morten
On Thu, Jun 23, 2022 at 4:42 PM Eric Cook <llua@gmx.com> wrote:
> 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-.
>
>
[-- Attachment #2: Type: text/html, Size: 1969 bytes --]
next prev parent reply other threads:[~2022-06-24 14:41 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 ` Duplicate results in _python - (Re: [MINOR BUG] Duplicate results in tab-menu) Eric Cook
2022-06-24 5:41 ` Bart Schaefer
2022-07-17 3:48 ` Bart Schaefer
2022-06-24 14:40 ` Morten Nissov [this message]
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=CAGS3e0ZkDoqfhL4209p13hErDJ4RYNA2OzFaROyKGvAVJox1bw@mail.gmail.com \
--to=morten.c.nissov@gmail.com \
--cc=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).