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

Re: completion within word

"Matthias B." wrote:
> Pathname completion should *always* work *unconditionally* and
> everything else should be offered in addition to it, if the completion
> code believes it makes sense in the appropriate position.

That would be completely unworkable for the vast majority of special
contextual completions.  You can bind a key that just does filename
completion, however.  This binds it to \C-f.  Oliver may know some
gotchas I'm missing.

zle -C complete-filename complete-word _generic
zstyle ':completion:complete-filename:*' completer _files
bindkey '^xf' complete-filename 

Peter Stephenson <pws@xxxxxxx>                  Software Engineer
CSR Ltd., Science Park, Milton Road,
Cambridge, CB4 0WH, UK                          Tel: +44 (0)1223 692070

This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the system manager.

This footnote also confirms that this email message has been swept by
MIMEsweeper for the presence of computer viruses.


Messages sorted by: Reverse Date, Date, Thread, Author