Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] _git: offer changed files relative to current directory
- X-seq: zsh-workers 27490
- From: ÅtÄpÃn NÄmec <stepnem@xxxxxxxxx>
- To: "Alexey I. Froloff" <raorn@xxxxxxxxxxxx>
- Subject: Re: [PATCH] _git: offer changed files relative to current directory
- Date: Tue, 8 Dec 2009 14:20:10 +0100
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:from:to:cc:subject :message-id:mail-followup-to:references:mime-version:content-type :content-disposition:content-transfer-encoding:in-reply-to :user-agent; bh=gqJb01RxWXSSdAuuGAUBzbaz8M/EA1aJ/ZaD8hIo/x8=; b=wfe630VC0nxoC1zChpsVYs+BdcY7yNwlOwEjV1UFiKHDny7XlVU0LHKy4Gd3ok2hCL qltJeaghiTUUq6N7LhHeAqqi4OgveTw8g6+xFaS18aQA5H8BdaR83hJdYMpUs9Ps8u0u 9sC2tXvtoiEb5OKY+Tq5GmNL+ifzhmvBsBxYQ=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:from:to:cc:subject:message-id:mail-followup-to:references :mime-version:content-type:content-disposition :content-transfer-encoding:in-reply-to:user-agent; b=dtKqRFRkr2mbpGSBc3Zx+6fyMFq2jJN2brjsmXK2fql4zvFPTD0uGZ8F9YrptLA+D4 viqM1MHGj6aExHWXnn0sz+EGYTWhxZND+MXXHJTaq8KKw0xy1PAOYlCGf6YxIystqZHm EWfOaAVuqiD5MSnF1ZxY+ao8ZvBHjomQdq83w=
- In-reply-to: <20091208120849.GG9335@xxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mail-followup-to: "Alexey I. Froloff" <raorn@xxxxxxxxxxxx>, zsh-workers@xxxxxxx
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <1259973163-20919-1-git-send-email-raorn@xxxxxxxxxxxx> <20091205120753.GA21684@headley> <20091205124258.GC3344@xxxxxxxxxxxx> <20091205151202.GE3344@xxxxxxxxxxxx> <20091205170053.GB21684@headley> <20091208120849.GG9335@xxxxxxxxxxxx>
On Tue, Dec 08, 2009 at 03:08:49PM +0300, Alexey I. Froloff wrote:
> On Sat, Dec 05, 2009 at 06:00:53PM +0100, ??t??p??n N??mec wrote:
> > - _wanted files expl 'index file' _multi_parts $@ - / files
> > + _description files expl 'Changed files'
> > + compadd "$expl[@]" - "$files[@]"
> You don't use _multi_parts, what's why you think my code is
> "wrong".
Yeah, I figured as much; it's "wrong" only with respect to my
expectations, of course -- I also noted already that your solution
actually seems to be more consistent with other Zsh behaviour.
My solution actually duplicates the output of `git status', so it
displays and completes the whole paths immediately, at any position
within the repository. I still think it's (more) convenient and I kind
of got used to it, but the code is ridiculous and I assume others prefer
the behaviour of your solution, too.
Thanks to all for input, also to Mikael for the one-keystroke-saving
suggestion ;-).
Regards,
ÅtÄpÃn
Messages sorted by:
Reverse Date,
Date,
Thread,
Author