From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 15830 invoked from network); 24 Jun 2022 14:41:18 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Jun 2022 14:41:18 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1656081678; b=Xjl8N8+sizzHnLOLmxGY4LSdtZoAkzn5NOIHbvD1J4YiX8AFGGwFPiJOirJuGLLIdOCL+JHMI+ nhMW16Y0kWYJxMuJP1dUHpCW/oIz9yE+jfVoBz/cSjY+xCIEZqDjy04uTvmI5W/bS1ljWafDUF RpWQx8IN8t3QwPfzSYLQpJotu9bgoLF/eOeYQ3tlSuKalkSIe26NscV3tFM504YIGp9+1Mfw+Y mIIT7M+Lc0Bw+VIne7sNkIgw05Mh8o3hX40PrSc7hIxb3Z5StPSSYBE1pFVn6sgO1yRlWwXHiq bohTrixf17l2tSyarHvTGvHEpf44Amou3sfgBw0gpi+ROw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-pj1-f42.google.com) smtp.remote-ip=209.85.216.42; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1656081678; bh=CuQ9dECGv8J2XAZ+MiLTI5Nz6rhTUVl5rfdLpAUD+5k=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=P5Cl4QULNzuYXjof0boyIfMRcwq6Kot5wNY6I3UA39gdc4fdrnl6rcT+g5/DINVLUk25g7O6i+ RQIXdJrQPu8p1LywUndgVsFFOMZJoYt04BJt/W7h0EXrklYkF3n/ErsfQpSh6TJ3aFCtyJRC77 5V2KHr9fMRateFNBTwyA5LcRjt/HM9IZKRoBBieGUfTkcjAxmwbMLOVlpubLdVRLmIn23VrRrF 1+N6CgRUwMrMqGbxnxrvyjL7a9EZydikFaZ2ymCpWYV6KBx4ADdD89np4EQQv0f2GYttowEXgT lEUsy1KHlM4PwaBQiSZIrlSEVPMDx3lE3V3kIvEBZHfa0g==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=cv3l1twoQcdI8KP3P9b+KtOPZ4aq/uotvTIww4x5G+A=; b=kAt9P+4RLLZeWWd/xzbY4fklHJ RPj8ng0GbKV3NGRWbvUc9TLGMJF6jckibBrcl85/ASmDdK3zRcn9FFGHdJ2ux0cj/xmkGSQrG8toL G7teAgPdWpTBXJkWjP2HHDEsoRwqQsKa67ziYx3UuhNdz9UA/gYlgmFO6hYGKxEVheyeFnsBVa7/f 5WlMpz9pgXZSPMfY9eTpifLGAWbz3JDkXDdg9sgvKjG48R0Yd8NrQXvZXmqweuNYDE1h5HAng4P2R LEQnFG4xvewguHOwycS9GTy1OEK221FMCsx+Y908WFlu9f68FRfnqLR2toyQ1MkyMhGTrKngTW8sq YT8pRONQ==; Received: from authenticated user by zero.zsh.org with local id 1o4kUm-000JQj-V0; Fri, 24 Jun 2022 14:41:16 +0000 Authentication-Results: zsh.org; iprev=pass (mail-pj1-f42.google.com) smtp.remote-ip=209.85.216.42; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-pj1-f42.google.com ([209.85.216.42]:54866) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1o4kU4-000Ijs-5a; Fri, 24 Jun 2022 14:40:33 +0000 Received: by mail-pj1-f42.google.com with SMTP id cv13so2968295pjb.4 for ; Fri, 24 Jun 2022 07:40:32 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=cv3l1twoQcdI8KP3P9b+KtOPZ4aq/uotvTIww4x5G+A=; b=K1W5HIILf+mA+kO+X3+4wZRLw0Y7LICHJSZ1MfKQehdDuQm5uu1KmJOb5pCXlf8ohx RdEZnE1nhqfGcrZH3xxQ8rT61y6UqYZkYLypfweirwZlNtv63Q462pnXYQi1ebv1ohNL GjN03uM4z9RbVm9zRS3i5L1mBD1DLQ5gFvRocaM6I/AOv8y/Ie3Qykmfmu3Iyrx+NXaP 50RZBCnzxAh0mxMMaKRJIxhYpnoPmDr8OZMMuu2StWY+NtB/FkstcTmrh2FYYgBR/y26 4DdcSvbnD+YRR/6vMxVc2SrmMJvTnWSq2cFltXeHf8REPKcu6qwU8kaRCoUsaVYVcHAM Ij7A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=cv3l1twoQcdI8KP3P9b+KtOPZ4aq/uotvTIww4x5G+A=; b=pAJi+TKrAOkVIE4DLE89y7DNA5ZiPWsVoXwcqTuc6ZkElzOgyAS7Dpu+lh9ctFBF0i 6OPjetuxBybRLUHs/a/ktH+memLvwAcEId0NL79omF+slEcMZlnKhqJfG4BU+aBXlaip aEA1z+ne3qyuBlIPtWl9TwC5p9RN2fkwWO0UPyycMUz38S1aYiJFYM/ChsgG+RXFXEbM 62GrZ9ZqGwkQLnSDhJErhcVTLSqDpCShtioxI3z3EgYl16tvg0ov0yz8qdIVJDLMjH4M IzkKraQIbrZnUY4+PCQC0oO4LRQTyF2BFmR/Jt+BNdEER0YfBp7eGT9P0NehXET4y9SY m1qA== X-Gm-Message-State: AJIora8r8mHtRJCIWcBmLljWWvp63RvjtvllYkNwrIIdEh9DD+zeS6Cd T0p+WQWZkjEBLDfIcBio8QLokTized+0I3SCEoG4LGL8PsCfkg== X-Google-Smtp-Source: AGRyM1vVpotqwvhLrR9W9aUtnIhglG1YVC0eYOFraVBsggzPx5BID4Gwuf8+I8jke0TxttF0QPmmTVe/T71RHedGyyM= X-Received: by 2002:a17:90b:388c:b0:1ec:d129:704 with SMTP id mu12-20020a17090b388c00b001ecd1290704mr4432240pjb.98.1656081630566; Fri, 24 Jun 2022 07:40:30 -0700 (PDT) MIME-Version: 1.0 References: <0c939d76-d9ff-e684-cbc5-70dac285491d@gmx.com> In-Reply-To: <0c939d76-d9ff-e684-cbc5-70dac285491d@gmx.com> From: Morten Nissov Date: Fri, 24 Jun 2022 16:40:19 +0200 Message-ID: Subject: Re: Duplicate results in _python - (Re: [MINOR BUG] Duplicate results in tab-menu) To: Eric Cook Cc: zsh-users@zsh.org Content-Type: multipart/alternative; boundary="0000000000004f1be905e2328da0" X-Seq: 27853 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --0000000000004f1be905e2328da0 Content-Type: text/plain; charset="UTF-8" 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 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-. > > --0000000000004f1be905e2328da0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Regarding the workaround, as far as I can see `zstyle '= ;:completion::complete:python<->#(.<->)#::*' list-dirs-firs= t false` doesn't actually fix the problem.

`zstyle ':co= mpletion::complete:python3::*' list-dirs-first false` does however, tho= ugh 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 he= re.
>
> In some cases, when I tab to open the menu everything is duplicated, s= ee below for example
> image.png
> I've found this happens when my .zshrc contains
>
>=C2=A0 =C2=A0 =C2=A0|zstyle ':completion:*:matches' group '= yes' zstyle ':completion:*' group-name '' zstyle "= :completion:*" list-dirs-first true autoload -U compinit && co= mpinit
>=C2=A0 =C2=A0 =C2=A0|
>
>
> 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, retur= ns (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 dupl= icates from happening:
zstyle ':completion::complete:python<->#(.<->)#::*' lis= t-dirs-first false

but even with that, compsys seems to still tries to complete -default-.

--0000000000004f1be905e2328da0--