Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: _expand completer and hashed dirs



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