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.5 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 12863 invoked from network); 24 Jun 2023 19:56:01 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 24 Jun 2023 19:56:01 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1687636561; b=feGbIAvEEDRMNI9pEqbBqCzRjZabXiecxTLXsSp9jjevQxuw8DjNTg0MD/c6JWt2hezqyDHf5S 71HO9YmPDCNlrJYQplw91X5IF/I67ickMLI5/r/VnVManjNGy4ffnZOVNaL76R2CrxGc2GY8rC 5I9WZTs0O6075rvy7CccKyDpHlfhJSkrFNOuKkCmeyejU30KdSkpqIJ/pcpjvNRBWvUXESToK8 AO7pLTqrtTGZHiz2l1hB0bp4x6hye8NFgeB6VvPOh4iWHJ2WAER7eDqqiNnHP87M/El/k9RrFW Rd/d4q6RHqYh9CGXCFS9945at+33dLnsPVvrnxJVlEk6Qw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (redisdead.crans.org) smtp.remote-ip=185.230.79.39; dkim=pass header.d=crans.org header.s=mail header.a=rsa-sha256; dmarc=none header.from=crans.org; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1687636561; bh=eSgbzZYrh9wYutlMcSjjeaV5xOUGWgxmUg6BqTSYl4s=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To:From: References:Cc:To:Subject:MIME-Version:Date:Message-ID:DKIM-Signature: DKIM-Signature; b=HmseZFr8ECiz2NrdglD9tIprSYdcYlyvlqMcU0rp6dag6E55kCZDBvNaVgQAY0xGSSu9qw7qlZ zmc38Goy6reswFgJEySFO8FnhpwGH3PyT62HowJYNrVNMLwyvPW+rd8Vl2VKwU3UBPqHYKyNgn xHIuJZEfoeakDQzKRp1yWjRR7d3pSChM8tXNOVJH4mCwsCjnQkq0UXUW8BzFs6ZTjU8lcgiie+ 9J8FrZnLSOuUMczX+LMHZB2BXrN3frkOUffrCkN1bf6e69fMtkFbBkS5yEHGxuavHzH6UgCfL0 uYjX7hI1LwwlUeSdO15H22F+XoZ48a+unRKGab4+s/NhHQ==; 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:In-Reply-To:From:References:Cc:To:Subject:MIME-Version:Date: Message-ID:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=0WEaRlPnxfg8bOepR/GERO3ml/qIrR8WRCWeXpnZDQA=; b=fYV0W64z+jVLQmcuuVomkytU4h nlCEXHL+10hSxkHoLnC3ti7uRf6iHdvy6vw6NnEojY/8oyP6bxNpKiENabPQg6HGFYdNJgfTT1b0p YSc/g+shfQG2Y8L3npXbYZwVO0WUKeC14w6b6oEIn9SPC8TjCVGizjnWTdmAeewcRQrkKk17Wxw1t PVdFmHu/rL3iKJsxwB5OtyyKlhFxASnxw6Or5LbxsRBaLS7HFzFCu7Mtid1bk0iM+3rkWAt4geCXm Pk3XrAATDi4qgpTujSkiQDQ3NFQFtQLShop1nPTSD0ihxICA0or84y9dWHKhpRoU7EK9GrFg3SYDk nwW7GhRQ==; Received: by zero.zsh.org with local id 1qD9MV-0001Mn-IP; Sat, 24 Jun 2023 19:55:59 +0000 Authentication-Results: zsh.org; iprev=pass (redisdead.crans.org) smtp.remote-ip=185.230.79.39; dkim=pass header.d=crans.org header.s=mail header.a=rsa-sha256; dmarc=none header.from=crans.org; arc=none Received: from redisdead.crans.org ([185.230.79.39]:42610) (DNSSEC AD) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1qD9Lr-00011Y-AI; Sat, 24 Jun 2023 19:55:24 +0000 Received: from [IPV6:2a01:e0a:1aa:1110:46ad:9367:b945:dae5] (unknown [IPv6:2a01:e0a:1aa:1110:46ad:9367:b945:dae5]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by redisdead.crans.org (Postfix) with ESMTPSA id D93131FD; Sat, 24 Jun 2023 21:55:17 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=crans.org; s=mail; t=1687636518; bh=eSgbzZYrh9wYutlMcSjjeaV5xOUGWgxmUg6BqTSYl4s=; h=Date:Subject:To:Cc:References:From:In-Reply-To:From; b=SvFUHkdUIUyNf+MKthGT0ZlP2efWXps/aXjfNms0u75Vy8PbHMOp4ZqYNKpiJnYxK o+7fxjnijJKELEqlypYbbf07FFAZWjn/ISbPcF4YVsTtYlMyOS5LkD1S2QeBdSIo5d LIZNaKJJRAB8DXEZX8vriU9UAZRMh9EBAZycwX7dWOXx3vZdpdHYM0wPkye0kCGr8D FRKnicw2SO+ngiVaa3sWqjyIE+60z1sI6u6TFOVRuIe2JgYMHDkaKSumbPUbNXx6E6 P4djtKHm+VkSTfdXWjUFMj3nIdthNyLVWAYxqqBvWTuxFw0VrVPb9qfwRswiMerGr7 aiiqtVLWtgdbLts4uT6CHmDspCZw+iqV/MYtAZ12MjkeJfioYnqbpunDGxQStG6WyT rCqO4nzbYims+1UnCFv6LwtRLXLTBl0ziFyxrFVWLePWfRa1GlE4BuqW4zajjQM5EK u0F8ag9vvmXMcX6GfUfROo0M1k1Kesm7N6RD4yru2FhCeBEFK06CrO8t9ThDsha3Cp 2rDBEGHJ8vYirl6ytWMF5RoQ8pPVdOhr1pQ8vEVahntWSnWUxLq7Y9p3veAmwAU/+s hA9ePN7RbaLv/cRu1o/dwhSaXwFI0I6tPiyk4qCo/TBS70ZUq5oZY/Q1IwdQOKX/Q6 KNm9bvzZmDAKmGm91epAc62o= Message-ID: Date: Sat, 24 Jun 2023 21:55:16 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.12.0 Subject: Re: [bug] Completion functions _files/_path_files -F filter on escaped file names Content-Language: en-US, en-AU, fr To: Bart Schaefer Cc: zsh-workers@zsh.org References: <6bf87a65-1730-8a21-ac5a-d7d05219e024@crans.org> From: Johan Grande In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Seq: 51891 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: Le 22/06/2023 à 05:54, Bart Schaefer a écrit : > On Wed, Jun 21, 2023 at 12:29 PM Johan Grande wrote: >> Do you think that this behavior could be fixed? > > We could try this. However, it's not backward-compatible for people > who are already quoting spaces etc. for _files -F patterns. After looking at your suggestion and other, existing completions such as _git, I get the impression that I shouldn't use _files but rather mimic its basic behavior with _multi_parts and have more flexibility in filtering matches. I assume I'll lose some perks of _files but it'll hopefully fit my needs. If you have any tips or a good example to study, I'll be grateful. What I'll be aiming to do is: - complete will all files under a path filtered with a regex or an arbitrary command - contrary to _git, I won't have a root dir so if I'm working in a directory with >10k files under it, I might want to suggest only immediate children in the first instance rather than browse everything at once. Thanks -- Johan