Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to complete a file name?
- X-seq: zsh-workers 24451
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: How to complete a file name?
- Date: Wed, 23 Jan 2008 08:17:00 -0800
- In-reply-to: <slrnfpemf3.dvv.joerg@xxxxxxxxxxxx>
- 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> <slrnfpemf3.dvv.joerg@xxxxxxxxxxxx>
On Jan 23, 3:14pm, J.Sommer wrote:
}
} > bindkey '^xf' complete-filename
}
} This doesn't work with eval "echo /bi<^xf>
It works, but it's treating everything starting at the double-quote as
a single argument, so it's looking for a directory named "echo " with
a file inside whose name starts with "bi".
If what you're asking for is a way to force all the context-sensitive
command-line parsing but replace the context-sensitive completions with
file completion, then no, there's no simple way to do that.
(Ignoring for the nonce that _precommand doesn't unquote the first arg
for "eval" in any case, so context-sensitive completion doesn't do the
right thing either.)
--
Messages sorted by:
Reverse Date,
Date,
Thread,
Author