Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to complete a file name?
- X-seq: zsh-workers 24454
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: How to complete a file name?
- Date: Wed, 23 Jan 2008 08:57:40 -0800
- In-reply-to: <200801231418.m0NEI9mR029531@xxxxxxxxxxxxxx>
- 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>
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 }
zstyle ':completion:*' completer _oldlist _expand _complete \
_match _ignored _approximate _prefix _files _unquoted_files
Messages sorted by:
Reverse Date,
Date,
Thread,
Author