Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: _expand completer and hashed dirs
- X-seq: zsh-users 14420
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: _expand completer and hashed dirs
- Date: Mon, 21 Sep 2009 07:54:33 -0700
- In-reply-to: <20090921142434.GC10174@xxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20090921134728.GA10174@xxxxxxxxxxxxxxx> <200909211402.n8LE2dAo029543@xxxxxxxxxxxxxx> <20090921142434.GC10174@xxxxxxxxxxxxxxx>
On Sep 21, 4:24pm, Frank Terbeck wrote:
}
} What I had hoped, was this to work:
}
} 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author