zsh-workers
 help / color / mirror / code / Atom feed
From: Wayne Davison <wayned@users.sourceforge.net>
To: zsh-workers@sunsite.dk
Subject: more _git improvements?
Date: Sat, 1 Dec 2007 23:48:03 -0800	[thread overview]
Message-ID: <20071202074803.GB11034@blorf.net> (raw)

I was looking at the git alias support in the current _git completion,
and it appears to only be used to list alias words when completing a
subcommand, but has no effect when completing options after an alias.
For instance, I have a git for b=branch in my .gitconfig file, and if I
press TAB after "git b" it is listed as an alias.  However if I type an
extra space and a dash before pressing TAB ("git b -"), I don't get any
completions.  Can the completion system substitute the alias text and
show me the completions for "git branch -" (presumably without actually
changing the "b" into "branch" on the command-line)?

One other thing I noticed is that the "config" subcommand appears twice:
once in useful_commands, and once in ancillary_commands.  This results
in some completing confusion when completing "conf".  I chose to just
dump one of them (I dumped the "useful" one), and that makes it work
better in my limited testing (but I'm not sure it's right).

Finally, if someone checks in some changes, there is a "thee" that
should be "the" in the "gc" command:

    'gc:cleanup unnecessary files and optimize thee local repository'

I could check-in a fix for that, but I figure it can wait for a more
substantial change (if one is coming).

..wayne..


             reply	other threads:[~2007-12-02  7:48 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-12-02  7:48 Wayne Davison [this message]
2007-12-03  2:39 ` Clint Adams
2007-12-03  8:33 ` Nikolai Weibull

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=20071202074803.GB11034@blorf.net \
    --to=wayned@users.sourceforge.net \
    --cc=zsh-workers@sunsite.dk \
    /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).