Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Inserting all completions
- X-seq: zsh-users 2452
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: Danek Duvall <duvall@xxxxxxxxxxxxxxxxxx>, zsh-users@xxxxxxxxxxxxxx (Zsh Users)
- Subject: Re: Inserting all completions
- Date: Mon, 19 Jul 1999 23:59:57 +0000
- In-reply-to: <19990719160321.A30158@xxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <19990719113013.A29253@xxxxxxxxxxxxxxxxxx> <990719225136.ZM10630@xxxxxxxxxxxxxxxxxxxxxxx> <19990719160321.A30158@xxxxxxxxxxxxxxxxxx>
On Jul 19, 4:03pm, Danek Duvall wrote:
>
> Hmmm, okay ... I don't want to replace completion with this entirely. I'd
> like to have two keystrokes -- one, tab, is the normal completion
> mechanism. The second, ^X^I or something, puts all the matches on the
> line.
Just change the "compdef" in my previous example to:
compdef -k _all expand-or-complete '^X^I'
This creates a binding that acts like expand-or-complete but that calls
the function _all to generate the matches.
> The question then is, how to write function_to_compute_reply() in a
> suitably generic manner ...
Hmm. The existing Completions/*/* functions would be ideal for this, if
there were some way to refer to "all the matches that have already been
added by some other completer." Unfortunately I've forgotten whether
there is, and I can't find anything about it in the docs ... Sven?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author