Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Improved completion for git commit objects (__git_commit_objects)
- X-seq: zsh-workers 34670
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Daniel Hahler <genml+zsh-workers@xxxxxxxxxx>
- Subject: Re: Improved completion for git commit objects (__git_commit_objects)
- Date: Sat, 7 Mar 2015 03:46:06 +0000
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=x-sasl-enc:date:from:to:cc:subject :message-id:references:mime-version:content-type:in-reply-to; s= mesmtp; bh=0izVdUJsnGtK3xZVB2BIQAxn3K4=; b=lpfp3Of+Aa8WiLho9GSsK uw9xPurP+z7D4AohpNcLJftf7fB1SHtWcmxOvWtCeXSYsEGmNACEUW/bnaAWJRN5 H6A/fTrOofPKbq1LWZq3rlyujyXi9GMb1hy5kNU5KzkHMV4QZ4Y7z4YVS4d6PpDc wI6Eop28rjNpcDyP+P2fes=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=x-sasl-enc:date:from:to:cc:subject :message-id:references:mime-version:content-type:in-reply-to; s= smtpout; bh=0izVdUJsnGtK3xZVB2BIQAxn3K4=; b=k0QoXJD3f9MWwmqlrXni iHWyiI8fkTRljSzgJUAO3fmx4Eky7w66dU+tj8kK8X1IOUE+XuQEkZFBHcYXNRMF ZD/XqIw7Z+tHBK+mYppBNKfNqfe7rGsmqnbb4J9gODw79uBw87TaRQPIofo31+Vr 1akETSiK43E680fzzgpt+PU=
- In-reply-to: <54F7AF66.1010608@thequod.de>
- 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: <54F647E2.5020400@thequod.de> <20150304024000.GF2057@tarsus.local2> <54F7AF66.1010608@thequod.de>
[ Re-adding the list to CC ]
Good morning Daniel,
Daniel Hahler wrote on Thu, Mar 05, 2015 at 01:29:59 +0100:
> On 04.03.2015 03:40, Daniel Shahaf wrote:
> > Daniel Hahler wrote on Wed, Mar 04, 2015 at 00:46:42 +0100:
> >> + : ${(AA)commits::=${(f)"$(_call_program commits git --no-pager log --oneline -2 --format='%h%n%s')"}}
> >
> > You can remove '--oneline': it has no effect since you use '--format' later.
>
> Ok.
>
> It uses "-2" here (for testing purposes), but should be wider in general.
> Should this be configurable? What would be a good default?
>
> I think it depends on if it's displayed on the first "<tab>", or
> later. But a basic default is probably 20?!
Yes, 20 sounds like a good default.
Re configurable, I had the same thought. Configuring the history length
by a style would be straightforward, but I'd suggest waiting for
somebody to step up and say he'd use that knob before adding it.
(Knobs have a maintainability cost.)
I'm not sure how to go about making the second <TAB> behave differently.
Perhaps others could weigh in about that.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author