Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH/RFC] Completion: Add _composer
- X-seq: zsh-workers 43910
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH/RFC] Completion: Add _composer
- Date: Tue, 18 Dec 2018 00:22:16 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=message-id:from:to:mime-version :content-transfer-encoding:content-type:subject:references:date :in-reply-to; s=fm2; bh=qm+BC4gyV7srnnYNcc2Lrq4aZtPMNuxs+PimwOIF vcU=; b=bkRU6kMZmCrt5qeDDw7IXHWVmTAiixziGMEpD+Nu44KT8cd4Wqsp1fuM XdS4sR1gJ7S2Dat7NP8hFUMAMHUULIj4xUm4wnP9S5l4hpO3+rMCyjQclENKbV9R NMY/tFSedTDM5JQGJSCUZmlnkhas6bNShPm/3mKTUmhtu/LPOUf3HcRwv7RSrFkp dT/lD2rHFWxPPRbFnox0I6Xif/BY5a6BJxMpbKJ40RVyUz0W3LZhTBrAG5rimFO5 Nr5/+ccV8C6RfHQTXvH/ZIoj4F/5kUV5RL37hthKjJSZjMbck/sz7H6TSTsO1soE ywbCdoet/FdBkHAj2Cxk4VUs/hNOyA==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=content-transfer-encoding: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=fm1; bh=qm+BC4gyV7srnnYNcc2Lrq4aZtPMNuxs+PimwOIFv cU=; b=FdWV7G2rBYfxOp29lpHyzbwOtm54Uf5MGMJBQu/n7k+W7FSAV9rqqP1Mp FhAJJUrkosyWUt2kzgCk7bz4XWZ/vrAyZtYF44G/F4ukPavRDzYWdZB6GwcnKmw9 7aF0D4Y2KegDomuPQEE9Mh3RS5S6sGt/l8RR43hy7DN8t9EACFZIXhUYN0HciljV UaC7Fs8ZHjOpY7fcyiXIw6sa55Jo7DDgSdhvgSWcm5NHLIXcjU5oBLm8DCdEz+YO 2bOFOauMCRHvWXRSXZyVMmDvzxivaXESjVXFdqsV5TYUbi0LdWxH72PfJApZ+z1b 52i6hqPNckgCJzYaTdNIn3h1K8OfQ==
- In-reply-to: <1545092371.600233.1611967824.063830D4@webmail.messagingengine.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <6D1B6E3C-52B9-4AB6-BC48-3C279FCF33FC@dana.is> <1545092371.600233.1611967824.063830D4@webmail.messagingengine.com>
Daniel Shahaf wrote on Tue, 18 Dec 2018 00:19 +0000:
> dana wrote on Mon, 17 Dec 2018 17:09 -0600:
> > * Perhaps most questionable is __composer_packages. I couldn't figure out how
> > to reliably complete arbitrary package names, because Composer is incredibly
> > slow to return them, and there are so many that it didn't perform much better
> > when i tried the usual array-caching mechanism. Even asking Composer about
> > packages listed in the project JSON files is pretty slow, and not always
> > accurate. To work around those problems i 'seeded' the function with a bunch
> > of the most popular packages, and then i used `grep -o` to 'parse' the names
> > out of the JSON files. Hard-coding package names in feels especially weird,
> > but...?
>
> Are you familiar with _store_cache and cache-policy? It's not clear
> from the comments
> whether you've tried that.
(And sorry for the fullquote. I thought I'd trimmed it.)
Messages sorted by:
Reverse Date,
Date,
Thread,
Author