zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@sunsite.dk
Subject: Re: invoking compadd so that completion is for the second argument
Date: Tue, 23 Jun 2009 08:11:16 -0700	[thread overview]
Message-ID: <090623081116.ZM6249@torch.brasslantern.com> (raw)
In-Reply-To: <20090623142650.GA10573@trustfood.org>

On Jun 23,  4:26pm, Eric Smith wrote:
}
} I want to set up completion rules for the second argument
} and not the first which appears to eb the default.
} 
} How would i do this?

Could you provide an example command line to illustrate what you
intend to have happen?

For example, given a command line such as:

% roger dodger codger

Do you mean:

(1) The completion for "roger" is invoked, but the set of matches for
    "codger" is not the same as the set of matches for "dodger"; or

(2) The completion for "dodger" should be invoked (as if "roger" were
    not present) in order to generate matches for "codger"; or

(3) Some other thing entirely.

If (1), the best answer may be different if the matches for "codger"
are purely based on its position on the command line, or if they may
depend on what appears as the word in the "dodger" position.


  reply	other threads:[~2009-06-23 15:12 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-06-14  7:26 do not add a space after completion Eric Smith
2009-06-14 16:03 ` Bart Schaefer
2009-06-21 10:23   ` Eric Smith
2009-06-23 14:26 ` invoking compadd so that completion is for the second argument Eric Smith
2009-06-23 15:11   ` Bart Schaefer [this message]
2009-06-23 20:17 Eric Smith
2009-06-24  8:47 ` Peter Stephenson

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=090623081116.ZM6249@torch.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).