Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (5/3) _git: Make file-completion fallback optional
- X-seq: zsh-workers 29870
- From: Nikolai Weibull <now@xxxxxxxx>
- To: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- Subject: Re: PATCH: (5/3) _git: Make file-completion fallback optional
- Date: Thu, 27 Oct 2011 10:00:38 +0200
- Cc: zsh workers <zsh-workers@xxxxxxx>, Mikael Magnusson <mikachu@xxxxxxxxx>, Johan Sundström <oyasumi@xxxxxxxxx>
- 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=6fd41APjDjMhLthdtD1DlOKMKRgoTJaJpOI68b6jINI=; b=meJnMd1LMhELKNMlBBKMkeS3D37WlatotuugdWVGa8Se3BvzW/5hIUR95Gi+HmDE7T 9kMMyMWxP7eh5ov4Q2HrI/N4821IXjbDY5uPKVCjvkcXMNRJFHoHp8tWQlgdWwIb+AUI at7iE19FQdaXYwdFOLV+NTgMYbFT1asfkF2So=
- In-reply-to: <CADdV=MtY5d=afBUhnwbnba53Rw-TM_PYT1XvN55aY7xtjCc_rA@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: <1309379833-31315-1-git-send-email-ft@bewatermyfriend.org> <1309425476-26763-1-git-send-email-ft@bewatermyfriend.org> <CADdV=MtY5d=afBUhnwbnba53Rw-TM_PYT1XvN55aY7xtjCc_rA@mail.gmail.com>
- Sender: nikolai.weibull@xxxxxxxxx
2011/7/22 Nikolai Weibull <now@xxxxxxxx>:
> 2011/6/30 Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>:
>> Jonas asserted that not everyone may like _git to fall back to file name
>> completion for sub-commands it doesn't know. This makes that behaviour
>> configurable. See the comment on top of _git for details.
>>
>> The default is to *use* the fallbacke, since I am convinced that is the
>> least surprising way to do handle these situations. But if you really
>> dislike the fallback, now you can have it your way. With an indicator as
>> to *why* nothing is being completed even.
> I don’t think we should do it this way. If a user doesn’t want files
> to be completed, they should be disabling it with a zstyle. I can’t
> figure out how you do that best, but one way seems to be
>
> zstyle ':completion:*:*:git-mysubcommand:*' file-patterns ''
>
> That won’t display a message, though.
Does anyone have any better way of dealing with this?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author