Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to get all tagets for rake completion?
- X-seq: zsh-users 26229
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: How to get all tagets for rake completion?
- Date: Tue, 15 Dec 2020 17:12:05 +0000 (GMT)
- Archived-at: <https://zsh.org/users/26229>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/1047872238.2253883.1608052325319%40mail2.virginmedia.com>
- 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
- 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==
- Importance: Medium
- In-reply-to: <20201215125724.b6qdvvuhr2mwpxbz@jo-so.de>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <20201215125724.b6qdvvuhr2mwpxbz@jo-so.de>
- Sender: zsh-users-request@xxxxxxx
> On 15 December 2020 at 12:57 Jörg Sommer <joerg@xxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author