Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion for darcs
- X-seq: zsh-users 8659
- From: "Andrei A. Voropaev" <av@xxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: completion for darcs
- Date: Tue, 5 Apr 2005 16:58:58 +0200
- Cc: frederik@xxxxxxx, zsh-users@xxxxxxxxxx
- In-reply-to: <1050405144010.ZM15148@xxxxxxxxxxxxxxxxxxxxxxx>
- Mail-followup-to: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, frederik@xxxxxxx, zsh-users@xxxxxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20050401080620.GA16347@xxxxxxxxxxxxxxxxxxx> <20050401080914.GB16347@xxxxxxxxxxxxxxxxxxx> <424D152C.2030006@xxxxxxx> <20050401123620.GA2607@xxxxxxxxxxxxxxxxxxxx> <424D4A38.6010607@xxxxxxx> <20050405072940.GA9105@xxxxxxxxxxxxxx> <1050405144010.ZM15148@xxxxxxxxxxxxxxxxxxxxxxx>
On Tue, Apr 05, 2005 at 02:40:10PM +0000, Bart Schaefer wrote:
> On Apr 5, 12:29am, Frederik Eaton wrote:
> }
> } Shouldn't it be possible to just tell zsh that when there are no
> } completions for an argument, it should fall back to completing files?
>
> Sure. And it is. I'm surprised no one has mentioned this yet. Just
> put "_files" directly into your "completer" zstyle somewhere. E.g.:
>
> zstyle ':completion:*' completer \
> _oldlist _expand _complete _match _ignored _files _approximate _prefix
>
> Where you place it will determine the precedence taken by file completion
> with respect to "repairs" (like partial and approximate matching) done on
> the completions suggested by the more context-specific completer selected
> by _complete.
Yahoo! :) Works perfectly :)
--
Minds, like parachutes, function best when open
Messages sorted by:
Reverse Date,
Date,
Thread,
Author