Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: git --pretty completion, and (new) completion for npm
- X-seq: zsh-workers 29638
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Johan Sundström <oyasumi@xxxxxxxxx>
- Subject: Re: PATCH: git --pretty completion, and (new) completion for npm
- Date: Wed, 3 Aug 2011 16:46:38 +0200
- Cc: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>, zsh-workers@xxxxxxx
- 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=mANkjkfX6bM9d4peEXPTpvjgaRyF10GVAcDPeNFJNBI=; b=Po+KHj72Uh1fB29+tmPgsO2MPnTOdGSJcLx/CiUglazFwZTFID2BN4VRbnYVwNpdKd iIrRGt4ke++5fqTZOZn3lMmxgljgGBmdhAk1lpas70ql09d+ndPdTdSAvNpaSZdQU2Fm hv8qxXr1wGjC/CtQ6ABQsawnrlLlxPfclDjRk=
- In-reply-to: <AANLkTikdnYQWz=kKeiasBE7wG+rO2=+HSKQet53BkQK1@mail.gmail.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>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTi=Evf1nLVkKF9pr0t_hdzuTXJNi0nA6bcD9KBdT@mail.gmail.com> <871v22krki.fsf@ft.bewatermyfriend.org> <AANLkTikdnYQWz=kKeiasBE7wG+rO2=+HSKQet53BkQK1@mail.gmail.com>
- Sender: nikolai.weibull@xxxxxxxxx
2011/3/20 Johan Sundström <oyasumi@xxxxxxxxx>:
> On Sun, Mar 20, 2011 at 03:35, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx> wrote:
>> Johan Sundström wrote:
>> > I took to adding documented completion for to the git completer for
>> syntax that
>> > is impossible to remember and hard to find in the man page; git log
>> --pretty
>> > (and whichever other commands support --pretty / --format) now covers the
>> whole
>> > lot except %w, which seemed like it would need a whole little state
>> machine in
>> > itself.
>> Hm. This only works for stuff directly after the `=', doesn't it? As in:
>>
>> % git log -1 --pretty=%<tab>
> Correct; enough to document what the properties are when there's just the
> one you're interested in (for me it's usually %H for the commit hash), but
> sub-ideal for longer formats.
>
> But not in:
>>
>> % git log -1 --pretty="%H %<tab>
>>
>> That would be pretty useful, don't you think?
> It certainly would, but I fear my completion beard is not quite long enough
> yet for me to pull off that state machine, myself. :-)
This was never applied. Is anyone interested in having this added?
If so, it should be cleaned up and should probably add proper %w
handling and multiple-item handling.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author