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=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 21487 invoked from network); 15 Dec 2020 17:12:40 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 15 Dec 2020 17:12:40 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1608052360; b=gmR97rL+GTM8aCyVV8E68DJxTbvksexmv3u1MI/Gs9NQCpt1bd3X/79ybRwdwNS6oGD+NE24PZ qqP0CsVlzNbYzfeAFq9I6Ap1gy2MfY85aoT/8ifmiqRWuHUekIzvgfDMvVL84TyJKv219xTeWT TN/v3IRmIsy3Qp0ekvsiowlGOJFHOju7Tw9oTX/SzurbncrJhW0ADS8K0EcQaK9SH02Foc9Zyb JH6tjkq1DieSVFxjOjvCMr4v+G9EIXCnyazZxLYNQEbnThPeMmC4jq8hR47roVlkGFkXrQz1JF yZjg8ae17uUZiT4IVAFQka00ux1kkCT4qgrvSCP0EaaIJA==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1608052360; bh=CgURV1YlCJo3I/v+Fz92QoE5kcBcqIiJzzKuxJXgnMI=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:To:From:Date:DKIM-Signature: DKIM-Signature; b=JKQXfq6jpwtVn3QuUHHUtD8QS0yZl42zxwMmCgkYuAgeSxxX02TBwQSDWuw1Dv2OfpwswchZYu xtY8t8d6kzdyQ9CX3LQO5oWtaZufTKaoFFPQduOukSAKKnchj6DRoW+zTKTV7KcdxdcmVHPWNO XltxxIpsT+C9ksnx7RhpHEHRns90iojn6+c/RB1r2W5do1NQn2h23os7ADfVEw9kFjeuT2b4jQ vfO7OYuoPeibGYoeeg+Pyhw8O8WH2aWiyC9dRqNxEG5hGzbf+QKBXJxMj0MPKDQIMTWg5DOAft P+Y6K8735lodox1QTcgPiicgApggEdFn0jUJUtRh6Jg8Gg==; 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-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:To:From: Date:Reply-To:Cc:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=1EIzsnf5X3oQNxcQDdiY9D2QsZEjigRet9hB+08WMtU=; b=wSaJ/6ePQy+yTdM09Ulzu+C9Mb zXirbpPFFvRano3dPyBUe9yjy+pfsZv8ahBZDktwNH6bW7vEoSztaoEg4qDjMOBx5bAaJMA/LAR+5 hREON3sNfB7tuOVjPgzAA7ftAdACfUp/qdRGZ64SJLgfDB62v2/FJdIhddeTJLuju+dgQXoMfHMBb 3ViZDHKZ2Gi3D9FbrqkXFY7seblw0Fy2WItjnmOnVDbM+cUd3xTStT+poAENJxEtngnaZQGz8mFYK frKa9dYvY7EH4nqU3Tv8/xj7xfwPkw6BT9PAoL1M+lLMwKMxQsPyRJ7eIW6QNX4f2MrFLxc4ov6XS /xfFRNCg==; Received: from authenticated user by zero.zsh.org with local id 1kpDsK-0004Cq-7m; Tue, 15 Dec 2020 17:12:36 +0000 Authentication-Results: zsh.org; iprev=pass (smtpq2.tb.ukmail.iss.as9143.net) smtp.remote-ip=212.54.57.97; dkim=pass header.d=ntlworld.com header.s=meg.feb2017 header.a=rsa-sha256; dmarc=pass header.from=ntlworld.com; arc=none Received: from smtpq2.tb.ukmail.iss.as9143.net ([212.54.57.97]:59284) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1kpDrq-0003pQ-7P; Tue, 15 Dec 2020 17:12:07 +0000 Received: from [212.54.57.80] (helo=smtp1.tb.ukmail.iss.as9143.net) by smtpq2.tb.ukmail.iss.as9143.net with esmtp (Exim 4.86_2) (envelope-from ) id 1kpDrp-0007hP-D6 for zsh-users@zsh.org; Tue, 15 Dec 2020 18:12:05 +0100 Received: from oxbe20.tb.ukmail.iss.as9143.net ([172.25.160.151]) by smtp1.tb.ukmail.iss.as9143.net with ESMTP id pDrpkK67qxC0wpDrpkadLV; Tue, 15 Dec 2020 18:12:05 +0100 X-Env-Mailfrom: p.w.stephenson@ntlworld.com X-Env-Rcptto: zsh-users@zsh.org X-SourceIP: 172.25.160.151 X-CNFS-Analysis: v=2.4 cv=NpcUz+RJ c=1 sm=1 tr=0 ts=5fd8ee65 a=Ip+kZtMD4PYul4iMASbA3A==:117 a=DeGUKtW0en8A:10 a=IkcTkHD0fZMA:10 a=zAZwVUNnDPoA:10 a=Msjmov5_4KCWrqgCYCoA:9 a=QEXdDO2ut3YA:10 X-Authenticated-Sender: p.w.stephenson@ntlworld.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ntlworld.com; s=meg.feb2017; t=1608052325; bh=CgURV1YlCJo3I/v+Fz92QoE5kcBcqIiJzzKuxJXgnMI=; h=Date:From:To:In-Reply-To:References:Subject; b=2Pe+z0fFTme9m6KCsJNtIRwDc1x+Ejh28J7Yu1YRze4q6uEczx8NpfLPehN0YI8F/ lKo1qpNqoSHD1M9n6SrjLF4ailksv8jclGPUMx8j9ESwsj1s9lmp62lZxzTFva55Kq M/IQ221BYOzf5s8wc61XtmiUgM6UlA1ZokVFK5iBsc66JF6r8GdDeAEV6BDX8nrmxf jjvqtiPxYtHdulkWTyJsrRXUiAjIC+EJt7u2Zwg/y4K71Q5MN9T/hRCC5PutAP96Q3 2Rehvr51tZrIrkuCFtGSsMHv2ziwUgzDbK39geWjE7AaHnr2JDIh0SYIs3buwNVXdz TcJPYt+LbmCSA== Date: Tue, 15 Dec 2020 17:12:05 +0000 (GMT) From: Peter Stephenson To: zsh-users@zsh.org Message-ID: <1047872238.2253883.1608052325319@mail2.virginmedia.com> In-Reply-To: <20201215125724.b6qdvvuhr2mwpxbz@jo-so.de> References: <20201215125724.b6qdvvuhr2mwpxbz@jo-so.de> Subject: Re: How to get all tagets for rake completion? MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Priority: 3 Importance: Medium X-Mailer: Open-Xchange Mailer v7.8.4-Rev72 X-Originating-IP: 165.225.81.25 X-Originating-Client: open-xchange-appsuite X-CMAE-Envelope: MS4xfHnOpU/lrjL7mPjUmCm4bhKb8s1dYCDeBGKGw+YTLtAKDMEtr09bgschNyx0dW3L+g7F80R5p86PAyKS+UgJ/XF1JCMsbr8nKyq5TBhyy0M+DEH21pYR d79q3IgmwLEjWRcJdZ+9k1POoHPEc3pwowpeu+RFK0h1TWl/WtjnjYlV7opzwkFiTkneQppQDjrteyPxOnmVgVhCdiUNIOWfx69KLBzGiwakBvO+hNrlQWcZ X-Seq: 26229 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: Archived-At: > On 15 December 2020 at 12:57 J=C3=B6rg Sommer wrote: > I would like to get all targets for the completion of rake arguments. How > can I inject an argument to the targets query call or how to replace it? = I > have to pass `-A` to *rake* to get the arguments for the completion. Frankly, your best bet is probably just to copy the distributed _rake function and adapt it, copying it to somewhere early in your $fpath. You'll see towards the end an extremely complicated line with "-sT" in the middle --- just change that to "-sTA". I have a feeling it might be possible to set a style so that the _call_program helper does something different for you, but I'm not sure there's any benefit in being too clever here. The _rake completer doesn't change very often, I don't think. (This could be made a style for the _rake completer easily enough, in fact.) pws