* Adding file name completions
@ 2011-01-25 5:50 Jean-Rene David
2011-01-25 19:43 ` Peter Stephenson
0 siblings, 1 reply; 2+ messages in thread
From: Jean-Rene David @ 2011-01-25 5:50 UTC (permalink / raw)
To: zsh-users
[-- Attachment #1: Type: text/plain, Size: 183 bytes --]
Hello,
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?
--
JR
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Adding file name completions
2011-01-25 5:50 Adding file name completions Jean-Rene David
@ 2011-01-25 19:43 ` Peter Stephenson
0 siblings, 0 replies; 2+ messages in thread
From: Peter Stephenson @ 2011-01-25 19:43 UTC (permalink / raw)
To: zsh-users
On Tue, 25 Jan 2011 00:50:08 -0500
Jean-Rene David <jeanrene.david@gmail.com> 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@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-01-25 19:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-01-25 5:50 Adding file name completions Jean-Rene David
2011-01-25 19:43 ` Peter Stephenson
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).