Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _expand completer and hashed dirs
- X-seq: zsh-users 14422
- From: Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: _expand completer and hashed dirs
- Date: Mon, 21 Sep 2009 17:02:59 +0200
- In-reply-to: <090921075433.ZM4471@xxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090921134728.GA10174@xxxxxxxxxxxxxxx> <200909211402.n8LE2dAo029543@xxxxxxxxxxxxxx> <20090921142434.GC10174@xxxxxxxxxxxxxxx> <090921075433.ZM4471@xxxxxxxxxxxxxxxxxxxxxx>
Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>:
> On Sep 21, 4:24pm, Frank Terbeck wrote:
> } zstyle ':completion:*:-tilde-:*' completer _complete _ignored _approximate
>
> Two things ...
>
> (1) the -tilde- context is only applied inside the _tilde completer,
> not inside all completers
>
> (2) but that doesn't matter, because the list of completers is chosen
> by _main_complete before any of the special contexts are set up.
>
> For practical purposes you can only select completers based on the widget
> used to invoke completion, not on the invocation context. It's a chicken
> and egg problem, the completers are what parse the line to determine what
> the context should be.
Oh, right. That clears this up, thanks!
Regards, Frank
Messages sorted by:
Reverse Date,
Date,
Thread,
Author