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

Re: How to complete a file name?



Hallo Bart,

Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Jan 23,  2:18pm, Peter Stephenson wrote:
> }
> } *Forced* filename completion is easy; you just bind it to another key.
> } 
> }   zle -C complete-filename complete-word _generic
> }   zstyle ':completion:complete-filename:*' completer _files
> }   bindkey '^xf' complete-filename
>
> Hmm.  Why not just append _files to the completer style, so that file
> completion is always tried if everything else fails?
>
> In fact, why not this:
>
>     _unquoted_files { compset -q; _files }
                     ^
Here's () missing.

>     zstyle ':completion:*' completer _oldlist _expand _complete \
> 	_match _ignored _approximate _prefix _files _unquoted_files

I fancy this idea.

Regards, Jörg.
-- 
Ein Optimist ist in der Regel ein Zeitgenosse, der ungenuegend informiert ist.
                                                           (John B. Priestley)



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