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

Re: completion for darcs



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