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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 27470 invoked from network); 27 Mar 2021 20:06:47 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 27 Mar 2021 20:06:47 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1616875607; b=XCKpViRf6dCsEW0Et/AZIFDPjGFfKo9bDMnuvDZR/D9WsSmZUUS8ts1yW/2SCPt1Un7LefUb24 7j4MAl/s6r8jyueca+hNg7/M6Apv8HRfabbWTx4JkfT0c8rNa+JPGb4e6UJdTYDnlvlu6wyXHE fswWGtwtVnl1CiAYRpoF7GxRqxVrUzc8LMBquJ5F9RDHjsXVKbov8yHu92emTbbqP9Ir3wPe0O oZJi6py88lskzTH6ccOhQqDZ+/6B6poo2tpK1WITXcx1L6Hzi79bSiVgUbISQwaUqNfT2C8dzJ NDqgtTd2EBBhySnaLZYFgZEj/Ziw0QSNo7ir3qmp/xH8+w==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=larryv.me header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=pass header.from=larryv.me; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1616875607; bh=Lzyv3NFp+EOoRP5908MeEZBRjTE+BxU8L646h9KrJ9Q=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Subject:Cc:To:From:Date:References:In-Reply-To: Message-ID:MIME-Version:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=Kb5zX3tWscjS6WJy0fkCpwOFBW1miimBKTYb2TYj7A+hscqBsmiR4e8zIm7ndr9tNfeQp9nANE FQbMbfdl+DwUbIEpyBLwO94KW5X99mVYVV97QKKAtOxq7TVPvF3ZtOD7SYWUnWIpMgPWmhB46w aXLi9JSdfmz8VDg6oAYD++pz8lj/z7Yx+YvJcDqSKbXrAS/JISuV5AzvwBmwa/pbD7wWDn2uE1 IOtJBB+EhZVh1cDxLfj8Rlpy+TVgtNWnLNvKZ4iUqLD6TYAKraMlh2uDdidC9oK7H1XamdrYqW pRFAd9BgLpZ1SA1N7vtu+rIdnDXhZbRhFgWJwBO9VQ/WBw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id: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=kjD1Z3Y2mUKJDT2K4oiiOoTkgUinzpRp3VISWE5J0rk=; b=wAWw7TW2M33z8UTX3BGFlxiFxw ZEwODsm6Yel2B4oxSvbQicvdGyCqxdIqM/IqQhOohUExMFrVKgChCFPlcwNy3YXhWOXJP7JZrGSlK LaCeqn1/ecyOD7KIJsq5j4RRZecEO6AOFxnkB7/Qv13IKTrB8+hMVOd/tMlkvEveSqchpQNReRpCQ ES8SkujNK3+J7Tj7I3ESri5j9DwbAUEAsBK/vYS/w1HyQeLQpTRkTQkeQP7vSgbf6E3vjVeAML8LM oul/SaEBtGsxxQz5G+Tj9NxmZW2EiYWEMnpQyuxfGIpoIF4uc1vKCrnjgQNuBeWgseRxhClAQd6KR 7/ngriMA==; Received: from authenticated user by zero.zsh.org with local id 1lQFCn-00043J-N5; Sat, 27 Mar 2021 20:06:45 +0000 Authentication-Results: zsh.org; iprev=pass (out5-smtp.messagingengine.com) smtp.remote-ip=66.111.4.29; dkim=pass header.d=larryv.me header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm2 header.a=rsa-sha256; dmarc=pass header.from=larryv.me; arc=none Received: from out5-smtp.messagingengine.com ([66.111.4.29]:49177) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1lQFCS-0003uN-Df; Sat, 27 Mar 2021 20:06:25 +0000 Received: from compute6.internal (compute6.nyi.internal [10.202.2.46]) by mailout.nyi.internal (Postfix) with ESMTP id 871F05C003F; Sat, 27 Mar 2021 16:06:23 -0400 (EDT) Received: from imap2 ([10.202.2.52]) by compute6.internal (MEProxy); Sat, 27 Mar 2021 16:06:23 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=larryv.me; h= mime-version:message-id:in-reply-to:references:date:from:to:cc :subject:content-type; s=fm3; bh=kjD1Z3Y2mUKJDT2K4oiiOoTkgUinzpR p3VISWE5J0rk=; b=jxLv8ss+Q4cFPdlq5tMQ83+H1I3ZQocNYtw8HmoRGuUEb6x pFKSsWqVJ79YQBCCl46R+Bq+cr/Xk9Z98Di6mhhy5dGor7ReNlrtFMQyQYuKQMao PL9H4QmNKBKG9vx7FtcQf4lCmXjCsHOt/aOU9MN8JtR9u31dqprqOPTn+V2j80LQ NpLH6FUI27hl8nj54UAsB9MZsMRfGitZi9osprKHiipKNO+tEdcgIsDPr1mwv8nq 6NBy7DQ9lUovv941XXp7K9MIN0VnizTZQCOtNdD+5gi+UC/K264wJfwMynjV6fQj L+fQPq1msJ8Ov5D3V/jZ9c86QFjepVz4g1dEF8w== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-me-proxy :x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s=fm2; bh=kjD1Z3 Y2mUKJDT2K4oiiOoTkgUinzpRp3VISWE5J0rk=; b=e9Rl2TJTT0zEUNdLvRXrgK Vi1oOglwjB3x4FscBRoL/RVpEGzFmWHFqb8fAQIaEb06le7XI9oK5rx5dNkbRsuu xePtXz2Va+PMTnAWKoUBZTKngKjZnzAk5sVhVrf+gQ+Iakr4Tpdw5lCStgBa/hjY 0Dzni3zDX8DI24WOytrzEUy/F7s3PuvKVYiyVIobqf7ud+q0HfObRR1OPaxwTxP5 VtehZSd96uehT8UhBfVeENrP+xXTpkJCZr8NE1EOfx45A7AlDuFdhOIL1dxWxPZs TyjSbTLLVKe7pQTXALNjD0Q/DvjoM4YxwB+guPlzLFmX4pTSTFkoaIgaxGN/wqHQ == X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrudehgedgudefgecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepofgfggfkjghffffhvffutgesth dtredtreerjeenucfhrhhomhepnfgrfihrvghntggvpgggvghljoiiqhhuvgiiuceovhhq sehlrghrrhihvhdrmhgvqeenucggtffrrghtthgvrhhnpeejfeehjefgfeeugeffgfefve dtgfekkeeujedvuefggeelvefgheekgfdvveeuieenucevlhhushhtvghrufhiiigvpedt necurfgrrhgrmhepmhgrihhlfhhrohhmpehvqheslhgrrhhrhihvrdhmvg X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id 9F098A00073; Sat, 27 Mar 2021 16:06:22 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-273-g8500d2492d-fm-20210323.002-g8500d249 Mime-Version: 1.0 Message-Id: <42295452-2ad5-4236-ad37-43cd4fa9a716@www.fastmail.com> In-Reply-To: References: Date: Sat, 27 Mar 2021 16:06:00 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: zsh-workers@zsh.org Cc: dana Subject: Re: [RFC] Case-insensitive path completion in _git Content-Type: text/plain X-Seq: 48270 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: Archived-At: On Sat, Dec 12, 2020, at 11:40 PM, dana wrote: > I've had this sitting for a while: > > _git has issues completing files case-insensitively (if you have matcher-list > 'm:{a-zA-Z}={A-Za-z}' or whatever). Looking into it, i found that __git_files > is trying to pass a glob pattern to `git ls-files`, and this fails if there's > not an exact case match, since ls-files is always case-sensitive. > > There is a fall-back to `git ls-files` with no path, but this doesn't always > work either, because it defaults to the CWD, and the file you're trying to > complete may not be under the CWD. Even when the fall-back succeeds, it's not > ideal, because it'll pass every single file in the tree to _multi_parts, which > can be slow. > > The following hack solves the problem for me, but it might be too silly to > commit. Can anyone think of a more proper fix? If not, would the hack be > viable (probably gated behind a style)? Any further feedback (assuming dana still feels like pushing this, of course)? vq