Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Adding file name completions
- X-seq: zsh-users 15732
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Adding file name completions
- Date: Tue, 25 Jan 2011 19:43:27 +0000
- In-reply-to: <AANLkTi=WZ6Srm9-kn03G07Q-Qh946-brfinkEfaM6gsk@mail.gmail.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <AANLkTi=WZ6Srm9-kn03G07Q-Qh946-brfinkEfaM6gsk@mail.gmail.com>
On Tue, 25 Jan 2011 00:50:08 -0500
Jean-Rene David <jeanrene.david@xxxxxxxxx> wrote:
> If I type a command name followed by <tab> and I find the completer for
> that command doesn't complete filenames, is there a way to tell zsh to
> add filename completion?
Your simplest bet is to have a separate function to complete files,
else you would need to modify the completion function directly. The
following binds this to C-x f.
zle -C complete-file complete-word _generic
zstyle ':completion:user-expand:*' completer _user_expand
zstyle ':completion:complete-file:*' completer _path_files
bindkey '^xf' complete-file
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author