Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (4/3) _git-buildpackage: use a #desc: line
- X-seq: zsh-workers 29586
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: (4/3) _git-buildpackage: use a #desc: line
- Date: Fri, 22 Jul 2011 13:58:13 +0200
- Cc: zsh workers <zsh-workers@xxxxxxx>, Mikael Magnusson <mikachu@xxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=LeWXKb6NMos4vr0AEwvQxjcJXQhqs/FsB873cJLOcNE=; b=mOMv34OzRhQQWfUfrrDKQpMjxBLxMxJP2/SolurqLmEqirtdZw5G9D1lgr6gVNFF2V gf9ixJiM+zxiOULRUQehcoNz8YFdXX5fb0ajK6c87TEioravVL/IRs5pT80VCkWj7+tA x69tY40+8jXpql7798jE/Mj7rWwZ4KMqBRyag=
- In-reply-to: <878vrslslj.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1309379833-31315-1-git-send-email-ft@bewatermyfriend.org> <1309383009-18575-1-git-send-email-ft@bewatermyfriend.org> <CADdV=MsSUszt3Q4SnM5BmhoL90DCVOsCJnEtcmX0W+q3hw=hzQ@mail.gmail.com> <878vrslslj.fsf@ft.bewatermyfriend.org>
- Sender: nikolai.weibull@xxxxxxxxx
On Wed, Jul 20, 2011 at 20:22, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
> Nikolai Weibull wrote:
>> On Wed, Jun 29, 2011 at 23:30, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
>>
>>> If workers-29519 is applied, then this would make the already-existing
>>> `git-buildpackage' completion use a proper "#desc:" line, which could
>>> look like this:
>>
>> Does anyone have a better solution than this lying around? I feel
>> that this should be set with a zstyle, but I can’t figure out how, for
>> example, _git-buildpackage would call zstyle when it’s only being
>> autoloaded. Should _git, once loaded, load all autoloaded _git-*
>> functions so that they may set their description using zstyle?
>
> Actually, I don't think this is something styles are right for. There's
> no context sensitivity required, nor is there anything that needs to be
> configured.
>
> This is very much like `compinit' looking at the first line of _* files
> from $fpath. That's probably not what all completions should be doing,
> but _git isn't quite the common completion either. And this solution is
> pretty straight forward. So, unless there's some corner case I am
> missing, I don't see why it should be changed to something that's (as I
> pointed out earlier) less suited.
Hm, OK, perhaps you’re right. I still don’t like it, but I’ll live
with it. I will, however, change this to be “#description ” instead
of the slightly cryptic “#desc:”. “#Description ” reads better with
the “#compdef ” on line one. I hope this change is OK with you.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author