zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh User ML <zsh-users@sunsite.dk>
Subject: Re: expanding the completed arguments (ie cvs add *)
Date: Wed, 31 Mar 2004 16:42:14 +0000	[thread overview]
Message-ID: <1040331164214.ZM29310@candle.brasslantern.com> (raw)
In-Reply-To: <20040330194311.GA2780@pecos.8d.com>

On Mar 30,  2:43pm, xavier wrote:
} 
} I'd like to expand * with tab to the proposed completed possibilities
[...] 
} what did i do wrong ?

First of all, if you aren't using compsys (you probably are, but you
didn't say), the old expand-or-complete key binding for TAB expands
glob patterns as file names without regard to the completion context.

Secondly, if you are using compsys and you have the _expand completer
in your list of completers, that mimics the old style expansion and so
again you get all files globbed independent of context.

(This happens in part because the "completer" style is by necessity
looked up in the nearly-empty default context, because until the calls
to completers have begun the more specific context isn't yet known.)

In order to get the behavior you want, you need to be using compsys (and
therefore have TAB bound to complete-word rather than expand-or-complete)
and also NOT be using the _expand completer.

You might also want to look at the doc for the _all_matches completer.


      reply	other threads:[~2004-03-31 16:42 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-30 19:43 xavier
2004-03-31 16:42 ` Bart Schaefer [this message]

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=1040331164214.ZM29310@candle.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@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).