Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: zstyle to control completion of functions/parameters beginning with underscore
- X-seq: zsh-workers 28841
- From: Greg Klanderman <gak@xxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: PATCH: zstyle to control completion of functions/parameters beginning with underscore
- Date: Wed, 02 Mar 2011 13:49:06 -0500
- In-reply-to: <7658.1299027908@thecus> (Oliver Kiddle's message of "Wed, 02 Mar 2011 02:05:08 +0100")
- 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: <1238890030-4683-1-git-send-email-ft@bewatermyfriend.org> <090404193718.ZM19801@torch.brasslantern.com> <20090405191304.1908fca8@pws-pc> <090405151115.ZM13159@torch.brasslantern.com> <20090406100929.505617e2@news01> <2d460de70905270930j681da6a5kf7848d67d89f0c69@mail.gmail.com> <20090527175941.3bbe2eba@news01> <m37i02cqd9.fsf@klanderman.net> <2d460de70905280148iebfcegcb4143c33e510efd@mail.gmail.com> <m3ei6qvalg.fsf_-_@klanderman.net> <7658.1299027908@thecus>
- Reply-to: gak@xxxxxxxxxxxxxx
>>>>> On March 1, 2011 Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> Does the ignored completer not do this for you?
> I have:
> zstyle ':completion::(^approximate*):*:functions' ignored-patterns '_*'
Hi Oliver,
I already answered that question 2 years ago: :-)
http://www.zsh.org/mla/workers/2009/msg00797.html
> Your hide-internal style is very similar to prefix-needed.
Sorry, I hadn't seen that.. if people agree, I can use the
prefix-needed style instead; the issues I see with that are:
1. Prefix-needed is defined as defaulting to true, but to preserve
current behavior for functions/parameters, the default would have
to be false. How bad would it be to have different defaults for
different uses of prefix-needed? Alternatively, how bad would it
be to change the current default behavior for function/parameter
completion?
2. At present prefix-needed is boolean valued, whereas my
hide-internal is ternary valued. I suppose my true value is not
really necessary, so I'd just map hide-internal=auto to
prefix-needed=true.
Greg
Messages sorted by:
Reverse Date,
Date,
Thread,
Author