zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Daniel Hahler <genml+zsh-workers@thequod.de>
Cc: zsh-workers@zsh.org
Subject: Re: Improved completion for git commit objects (__git_commit_objects)
Date: Sat, 7 Mar 2015 03:46:06 +0000	[thread overview]
Message-ID: <20150307034606.GA2206@tarsus.local2> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2015-03-07  3:46 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-03 23:46 Daniel Hahler
2015-03-04  2:40 ` Daniel Shahaf
2015-03-04  2:57   ` Daniel Shahaf
     [not found]   ` <54F7AF66.1010608@thequod.de>
2015-03-07  3:46     ` Daniel Shahaf [this message]
2015-03-07  4:01 ` Daniel Shahaf
2015-03-07 12:59   ` Mikael Magnusson
2015-03-09 19:54     ` Daniel Shahaf

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20150307034606.GA2206@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=genml+zsh-workers@thequod.de \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).