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=-4.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,NICE_REPLY_A,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 19159 invoked from network); 6 Dec 2021 08:54:27 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 6 Dec 2021 08:54:27 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1638780867; b=Cnr84PXC/0om8aPseXPAt5GyGO4YV8ep7eakzJ21TNqhORznOn+NRcvlIO3xmoFTwgtITHyyPM 16d2osku/sjkwe8UeDmI4tvrajbHrg3zXgSLyebuOoy1Ny8g+yf0pfBBG7k3lUVyPyfnOEfv37 fCAZipbtgH7L+uiKXERlPNkF59UMv8ltJ+XxllJ0GOF9AZ5CmTwSODUDFCkoEoUbtPYF06S3OB ZBpjmKyxZrjn5J3GVE9hc5WHbjh/TpBmkPhP5H/9bCVgLoEKreW71wjz4V7i1OF2Lh//3erHQY 64dpfe3jPDWgrowl6ybzv3lHOc4h5ZxycGHTNXvgjn4RTw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (p3plsmtp14-05-2.prod.phx3.secureserver.net) smtp.remote-ip=173.201.192.190; dmarc=none header.from=rayninfo.co.uk; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1638780867; bh=fA9RpsVW0dKpCQtZN7AcRav3b41TegR8Kc8xhBw1AOQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:In-Reply-To: MIME-Version:Date:Message-ID:From:References:To:Subject:DKIM-Signature; b=APL+83VlKB+70EMf+EgH7R6wtCbGcQolo9N5ZM/pubkvUmx90LcihAe27E67Zmoxg9Oyp+Jzac 986vsBO7yXOM6LT6qTBfLrfDyqsEPS3JZJ6EX5LnWIIz8IAjS895Qd8WMAlEU9NScU1gmnA+BI er0dGamgNlbjjqH1pG698YVCMk61B/9Zg/Us2O1jhjutRhwPSFW77L+h/uIV1BWR2Hx5Dj3+09 6/gZbk4sS61XlO2LJbYPX6Boj0frX9mNkjhEAi3ctDQAWcBDUn8LH2UnEBAIBV5QDA0PBylvxc RjvarXpVk2N8TZnx7qQTiD0oERGzgz9LuJEkSxSYR7X5BQ==; 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:MIME-Version:Date:Message-ID:From:References:To: Subject:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ivgSChfmkZbJOBUZ3CqO5LvNNa1UzvCDdm/V0lyyvI8=; b=USj17OSTsUF+31eJJ3mt50/63N aziA8+laqmZ+P12ff8wIwcpsdtPoOhUkswlAlOAMpmbVfROitfhE+xZr+KNCKwVNVNadpCmSKw3nn n6gpAVd+tB2pYbGyRtBTSPimWXU177dMdOryNRN2yKSZ/R4aE3cGmLd3+GfKiZ9GysYiFuj8ReVNb SjzfDr9RmK3TzrxMK59DQYuuvNHHGIo338w5C73SFiKhv3s/qWmtVJKcgoWDhdHJF1xSmmogeL9qS dSKfYhJ8zdtESCuokcfHDTXx6PxWCJ8XZU7QnHtnTYvOkHRKVczNhvj3hzWh7rcaQj95h4nbmCT6+ 7AwAFYmA==; Received: from authenticated user by zero.zsh.org with local id 1mu9lS-000LiE-Ie; Mon, 06 Dec 2021 08:54:26 +0000 Authentication-Results: zsh.org; iprev=pass (p3plsmtp14-05-2.prod.phx3.secureserver.net) smtp.remote-ip=173.201.192.190; dmarc=none header.from=rayninfo.co.uk; arc=none Received: from p3plsmtp14-05-2.prod.phx3.secureserver.net ([173.201.192.190]:39924 helo=p3plwbeout14-05.prod.phx3.secureserver.net) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES256-GCM-SHA384:256) id 1mu9kw-000L1X-Ua; Mon, 06 Dec 2021 08:53:55 +0000 Received: from mailex.mailcore.me ([94.136.40.143]) by :WBEOUT: with ESMTP id u9ktmap3kOCDLu9kumdmND; Mon, 06 Dec 2021 01:53:52 -0700 X-CMAE-Analysis: v=2.4 cv=EJ/Db3VC c=1 sm=1 tr=0 ts=61adcfa1 a=EhJYbXVJKsomWlz4CTV+qA==:117 a=6credUfX80hKd8poM5tkbA==:17 a=foO4Ca4Uqj0A:10 a=IkcTkHD0fZMA:10 a=IOMw9HtfNCkA:10 a=pGLkceISAAAA:8 a=jjC2CfRQdsl5tG525FwA:9 a=QEXdDO2ut3YA:10 X-SECURESERVER-ACCT: david@rayninfo.co.uk X-SID: u9ktmap3kOCDL Received: from [95.150.51.22] (helo=[192.168.1.231]) by smtp04.mailcore.me with esmtpa (Exim 4.94.2) (envelope-from ) id 1mu9kt-0001vn-An for zsh-users@zsh.org; Mon, 06 Dec 2021 08:53:51 +0000 Subject: Re: Multipart autocomplete, zstyle, and cd To: zsh-users@zsh.org References: From: zzapper Message-ID: Date: Mon, 6 Dec 2021 08:53:50 +0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.14.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US X-Mailcore-Auth: 8308408 X-Mailcore-Domain: 840527 X-123-reg-Authenticated: david@rayninfo.co.uk X-Originating-IP: 95.150.51.22 X-CMAE-Envelope: MS4xfElXnrAHjWDw/V0f8gVPzCxu3QG5JstpI+Z/G6O3zmHMIFA0TQ2N/hFrzJOuRBR9/KSM134jFaiyT00mQ+N4d/qR8El+4KzRn1rgn0aofDX2Nd+74KfG BQMHBXAyG43qS7bhdB4WWC89F75F3YMLmbX62r/epkWK5pHwy4kgGJfAyakU3ukBC3qQdcW5kzEk4w== X-Seq: 27419 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: On 06/12/2021 04:47, Bart Schaefer wrote: > On Sun, Dec 5, 2021 at 5:29 PM Zach Riggle wrote: >> _wanted -V popular-directories expl 'popular directories' \ >> compadd -Q -a dirs >> #-------------------------- COMPLETION ENHANCEMENT --------------------------- >> This completion works well, though I would like to know how to get the >> completion to not do word-separated completion and upon e.g. >> >> $ foobarbaz bi >> >> ... to not add a space, but instead allow further specification e.g., > You should add the -f option to compadd, so that it knows the results > are file names (which includes directories). I suspect you also do > not really need/want the -Q option. > > You should also NOT include the trailing slash in the values returned > from zshz-cd-completion. Either -f will cause compadd to figure that > out, or you should be passing the options -S "/" and -q to compadd (if > the strings returned by zshz-cd-completion might not refer to existing > directories). Ah the dreaded 'optionally' unwanted trailing space when I want to do two stage completion. Will see if this advice can help me zzapper