Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion for darcs
- X-seq: zsh-users 8658
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: frederik@xxxxxxx
- Subject: Re: completion for darcs
- Date: Tue, 05 Apr 2005 14:40:10 +0000
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20050405072940.GA9105@xxxxxxxxxxxxxx>
- 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>
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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author