Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to complete a file name?
- X-seq: zsh-workers 24459
- From: Jörg Sommer <joerg@xxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: How to complete a file name?
- Date: Thu, 24 Jan 2008 11:56:04 +0000 (UTC)
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <slrnfon40a.jes.joerg@xxxxxxxxxxxx> <20080122004800.GA16455@xxxxxxxxxxx> <slrnfpef1q.dvv.joerg@xxxxxxxxxxxx> <200801231418.m0NEI9mR029531@xxxxxxxxxxxxxx> <080123085740.ZM17413@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: news <news@xxxxxxxxxxxx>
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