zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-workers@sunsite.dk
Subject: Re: How to complete a file name?
Date: Wed, 23 Jan 2008 08:17:00 -0800	[thread overview]
Message-ID: <080123081701.ZM17246@torch.brasslantern.com> (raw)
In-Reply-To: <slrnfpemf3.dvv.joerg@alea.gnuu.de>

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.)

-- 


  reply	other threads:[~2008-01-23 16:18 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-01-14 16:38 Jörg Sommer
2008-01-22  0:48 ` Clint Adams
2008-01-23 13:08   ` Jörg Sommer
2008-01-23 14:18     ` Peter Stephenson
2008-01-23 15:14       ` Jörg Sommer
2008-01-23 16:17         ` Bart Schaefer [this message]
2008-01-23 16:57       ` Bart Schaefer
2008-01-24 11:56         ` Jörg Sommer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=080123081701.ZM17246@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).