Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Tests of interrupting completion, and completion_nostat_dirs
- X-seq: zsh-workers 32323
- From: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Tests of interrupting completion, and completion_nostat_dirs
- Date: Thu, 30 Jan 2014 09:30:57 +0000
- In-reply-to: <140129181206.ZM22813@torch.brasslantern.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
- Organization: Samsung Cambridge Solution Centre
- References: <CACcU-g0qb3gZVLPPS2bQBixuozSsXd_9ObK+V6CTcaP4qfiFtA@mail.gmail.com> <140122000435.ZM1516@torch.brasslantern.com> <CADdV=MsdfHUKDVy1dLbZ-d19cAEpGuDxzsKPd3Cy6imJ1Lo_8Q@mail.gmail.com> <140123171659.ZM19422@torch.brasslantern.com> <87iot91lp8.fsf@lwm.klanderman.net> <140125124934.ZM23767@torch.brasslantern.com> <87eh3q3g63.fsf@lwm.klanderman.net> <140129181206.ZM22813@torch.brasslantern.com>
On Wed, 29 Jan 2014 18:12:06 -0800
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> } I'll attach the patch below, if you'd be willing to incorporate
> } something like it let me know, I'd certainly prefer to have it part of
> } zsh. I would add documentation of course.
>
> Hmm, to include this I'd probably want completion_nostat_dirs to be an
> autoloaded parameter in the zsh/complete module or something like that.
> It doesn't have any of those right now (the magic parameters that are
> only valid inside completion widgets are a somewhat different beast) but
> there's no reason it couldn't.
This has traditionally been done using something that's only seen by
completion that gets passed in from above. It could, for example, be
something in compstate set at the top level of _main_complete, but there
are other mechanisms: the menu completion library uses its own
parameters that are set by styles, and sometimes the effect of styles
get passed into builtins which probably doesn't fit here. A style would
certainly fit better with the rest of the completion system.
This is different from ZLE which doesn't use styles so gets configured
by straight parameters --- that's not ideal; it would be better to use
some form of namespace if we could.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author