Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Forgetting about compinit with manual alteration of _comps
- X-seq: zsh-users 21266
- From: Mikael Magnusson <mikachu@xxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Forgetting about compinit with manual alteration of _comps
- Date: Wed, 10 Feb 2016 11:32:00 +0100
- Cc: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>, Zsh Users <zsh-users@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=b26bxWCKHEWYNpb5lSIuGOIGIrKcG8TlW6aUm8erpOk=; b=0/3JMWmefqlvGlV2D1+GzUNrGWWF0uxw7AqN50I4JIC6N+LKA7yunnm+wWhasrFmpF HFiEioD/ZfL3zRWr9fylbssYRdu3pby76tKygKtUHBrw7X0I69XaASkNB9aeEZQ2ExM9 5aav11xrGHaK40Rqm1PGLYtbmMxKqoPq5HgrdL5lewvkiT5odm3DA3yaafFpIFE9dnm7 u8Au9PSPiYBrJxZ6XaLZ8cxEjeVG7XvIcqT3J3Nl+/hsC7aY+RzuZlkfNDRk8lge4gc3 F+RYH/IRRrtNgbcNzlU16hxAomxpp8d1Yg79vI4Vs/ydhVcauxudZZC8MbOMcr1LnKQ8 nhjw==
- In-reply-to: <CAKc7PVDL3XfFmc7h23hjbybJ15k_hc_SZXkM-3WqzFCgOZshVw@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBLufmR3wLZ8mVGpGq1o1DgB8ci3bH3X6cyzbMyEOoZZg__29303.1625486494$1455013779$gmane$org@mail.gmail.com> <20160210092322.GB6339@tarsus.local2> <CAKc7PVDL3XfFmc7h23hjbybJ15k_hc_SZXkM-3WqzFCgOZshVw@mail.gmail.com>
On Wed, Feb 10, 2016 at 11:28 AM, Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
> On 10 February 2016 at 10:23, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
>> However, I'm not sure making a plugin loadable _either before or after_
>> compinit is a good idea. It may be simpler for plugin authors to expect
>> to be loaded in one circumstance (say, after compinit) and ensure they
>> emit a clear error message in the other circumstance (say, before
>> compinit), than to eternally support two codepaths.
>
> All this is a frustration about "compinit does everything". If there
> was "compinit" and "compinit_examine_fpath", it would be all much
> simpler. User would init completion at beginning of .zshrc, which is a
> natural location for "init" things, and then "compinit_examine_fpath"
> at end, which is also natural. All this resolved by providing
> compdef() stub gathering compdef calls and allowing to replay them
> after compinit placed at bottom of .zshrc.
Another thought is designing a plugin interface designed around how
zsh actually works, rather than bending over backwards to accomodate
cargo culted code that barely works in the first place.
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author