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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 5267 invoked from network); 21 Apr 2023 19:59:47 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 21 Apr 2023 19:59:47 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1682107187; b=Tptk3+CM9hwkvCTUxj+89VgBb0GbI2s+3oi9FNlR/WSHKErCPhrd0h4H3Qkn0VpBY+KqkCY8X8 ZqFjdkDRrXiGdu0DsNFp+YTx0v8Oh7HtuuKC5qh/tlsNNWafpPOnZ2iEaReXyMxa8CPBtNvWa+ PQqsKlFoOnVU6BGus3kCseK5v+08ttnxHmXiMo6XkfzSvPzrylSdw0ooxfX9bjQRzXoQorbS4X Fb52faddsSPwhLkn0XIYJARt0RezF6cmdm4RABa4s3LEsEkwqzcBWlLHLC1qqkXAw/xEJroUiL solZl0qOX8VCZNLx17CV2otpOo4jRBhDgqWIfTmdOuBAOw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f44.google.com) smtp.remote-ip=209.85.218.44; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1682107187; bh=BZoaPSz0s03s8mQ+dWcQYBpQh749yq4P5kyF+72EkFs=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=nDSqGdFSSFRmS1VrKcBafnIIKdkNgA8zUouUoPmsygWYsnz/a87G5+61w4Ao/oocOM+hXTS1bE mZ53q/9/lkpW1K8nQ6QWEIf6NjZr2Gt6kMN8QiZcBB0EXAAkcMHcvN27zEs9f+TX2YrK7jw4HR pQEfM0cm6Mmmi21VAqdx52mQWf8NHafQSVUyFZc6wbIzsCZyadpyX4YdudB93xYwpf/zfup4Oe A1sbXBXxS6lA5oNsE4XzMvmG4l8C0rUrN20C8Za27Z4GplXXhWVlGzDBHBiAOLq2QmsXptdwQO agg2TWoRiGT9gLt+igANExy7xSAnMpMpr4N28JDFz1nsaw==; 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-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=/Xx1HNDoBCTN1HS+IqWUnAfDotwr6G5MyogNJXO17NY=; b=Y8NulV4jeyIMYEMQCyYQBn4WaG Fvr4d7+8LWVuq9M0AgtLyaXOXvjDrihpiYtfUJkOHv4zmL3o9w5ACYhrk11vbN9KKEPhJTHgr09MQ rfvbMyRsXba5nRnRfzJkh/2cYZwri/I4HteF289yy5kUKJ1UhWPbBXlMNTs0AfpyRngFQE/BH9jaF qbmHRlv04vnPuAr3Dxi9RTtX/wLq1RXGkZ3aHcQWG0I2WYPupoyT8N/Uv1LCPQVLrT2GoGPdtjCUI GI9iopHKVnC2VqTCWuejC7Kp/u9b6BpjVYDHeNHueDb4wmSeOdoJ9b4X0ntT5qaOLt26O6EYRsPuR imczWHhg==; Received: by zero.zsh.org with local id 1ppwv4-0000hj-DY; Fri, 21 Apr 2023 19:59:46 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f44.google.com) smtp.remote-ip=209.85.218.44; dkim=pass header.d=brasslantern-com.20221208.gappssmtp.com header.s=20221208 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f44.google.com ([209.85.218.44]:45450) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1ppwuk-0000Q6-2A; Fri, 21 Apr 2023 19:59:27 +0000 Received: by mail-ej1-f44.google.com with SMTP id a640c23a62f3a-94a34d3812dso349308166b.3 for ; Fri, 21 Apr 2023 12:59:25 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20221208.gappssmtp.com; s=20221208; t=1682107165; x=1684699165; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=/Xx1HNDoBCTN1HS+IqWUnAfDotwr6G5MyogNJXO17NY=; b=JaRefvbjFrgwqcE9CIwVzhaRTWpeMQ5xi5qgJSSjSg+rMWxZiGlVE5uqlLA6Mylb9I CJEYgApcgF9sQi0bM/zYi/QcKE3QAEY5J+Yu9xyHouBKj9m34JSVEKFDoQ8Eb3ki7g0n h3eMsERvlzCxCscn+9q4vhwYhMmtSOwsSY4Rl+Gmf0ud52vo7IDL4xuiLKV3V5gUfZHh Q7ebriWIAuNeZ2XTGpUk33SSToHTh1hHC4TgMNOWfyH4PIl/PJA3DFDXG+5CyTlhlaMg UCy1NpE//4rlxmdyNpuHipu2l63GBAJS43waK3xsoY8IqXIt52PQvFDdPH61s1sAkADy zHJA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1682107165; x=1684699165; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=/Xx1HNDoBCTN1HS+IqWUnAfDotwr6G5MyogNJXO17NY=; b=G97Lyoy2Xu+E2wgO0COjaezaTTIf5GS3aV4HbTJkWodUQIMk+wV09mNRdSGgpsaw11 EBN1JLd9fkBAxnWtEtFtcOPcuppQ0RwXq3WURXpDAsSYk+e7H1h5A2yYb2Y/4nksq5jr BgXki9Um+oz3YuCd5QbWLoFxEhNrimtl+atgzJfmvFc4wO2aSi58A+Bt3FJmz/FX4R5q g8//ZeUodkW2+4xjFeK6RW3RIh/q10Odwai1/rlLK7llnYcRqVValZqK0Q7Jb8sjH+7w 1XjUNG5Ti6YPYryCxVQi8RbUt8hSGkVN3qrQ/DWU4P1qr/4Q1caK6TegzWHNrt4IEjtH ZAFQ== X-Gm-Message-State: AAQBX9eF0cr0nLJMzXEzuGAu+hlcX1IGPVH411kSvquWObv7gHR5kDAT sPBx0Jzzpt0q4rZOajwcJoo9L77hxDj6T/QCqpwS0mX2bcoi9k1Hk2A= X-Google-Smtp-Source: AKy350ZU1XmgvAfp4hWojr9g2QHPdZN8tsCIpAcnRrudhTtcove+9ayX0DWMqoYzVEWjDbiJYj4AYRduzyRVTQrkTj0= X-Received: by 2002:a17:906:2b11:b0:94f:5fd0:dd42 with SMTP id a17-20020a1709062b1100b0094f5fd0dd42mr3280286ejg.39.1682107165241; Fri, 21 Apr 2023 12:59:25 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Fri, 21 Apr 2023 12:59:13 -0700 Message-ID: Subject: Re: Autocomplete doesn't work correctly on certain folder names To: Zsh hackers list Cc: Ville Viitaharju Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 51667 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: , List-Subscribe: , List-Unsubscribe: , List-Post: List-Owner: List-Archive: On Thu, Apr 20, 2023 at 8:35=E2=80=AFPM Bart Schaefer wrote: > > If someone's willing to extract the matcher-list styles that oh-my-zsh > is setting, it'd make this easier to check. Docker or not, I'm simply > not going to wade through the rest of OMZ to investigate. On Fri, Apr 21, 2023 at 12:10=E2=80=AFAM Carlo Sala wrote: > > Everything relevant in omz related to matcher-list styles is here. OK, thanks. The following matcher-list demonstrates the oddity: zstyle ':completion:*' matcher-list 'm:{a-zA-Z}=3D{A-Za-z}' 'r:|=3D*' 'l:|= =3D* r:|=3D*' OMZ actually uses [:lower:] and [:upper:] but I wanted to rule out that det= ail. No solution yet, but I believe this is a completely different bug. The one previously mentioned (workers/50325) was an off-by-one when selecting the character in the right-hand set of m:{a-zA-Z}=3D{A-Za-z} to correspond to the character in the left-hand set. The bug reported by VIlle appears to be a problem with the input strings (that is, the file names). Given the provided example of my-longfoldername-firstname you-longfoldername-secondname I believe** the resulting partial completion should be y-longfoldername- but when the part before the first hyphen is longer in the second file name, the wrong character from the second name is chosen. I took a few stabs at different names and the ordering appears also to be important, e.g. if I try with jou-longfoldername-secondname mj-longfoldername-firstname I get the slightly different but less obviously wrong** answer -longfoldername- (that is, the "j" in common is not found at all). Other eyeballs on this would be appreciated. ** I may be incorrect about the expected answer, the juxtaposition of the prefix with the first hyphen also seems to matter.