zsh-workers
 help / color / mirror / code / Atom feed
From: Danek Duvall <duvall@comfychair.org>
To: Mikael Magnusson <mikachu@gmail.com>
Cc: zsh-workers@zsh.org
Subject: Re: completing a comma-separated pair of values
Date: Thu, 3 Mar 2011 15:58:36 -0800	[thread overview]
Message-ID: <20110303235836.GB12871@lorien.comfychair.org> (raw)
In-Reply-To: <AANLkTinR9Z7LAW9HYKq_Z7SLNc7ZRT9V87Z7gSdiUF8Z@mail.gmail.com>

On Fri, Mar 04, 2011 at 12:27:25AM +0100, Mikael Magnusson wrote:

> I'm about to go to bed and didn't read that carefully, but do you want
> _dir_list -s , maybe?

I'll have to approach that with a fresh brain, I think, but I'll take a
look.  It seems to me that it merely completes directories separated by a
separator character.  It doesn't help you if you want one of three
directories before the separator and either a particular directory or any
directory under another after the separator (and only one separator).  I'm
not completing directories, of course, but words, so it's not quite as
silly in real life as it sounds.  :)

I may have to roll my own with compadd and compset, but I was hoping to be
able to take advantage of _alternate for the second value, as it nicely
separates the two possibilities (fixed word vs path) with tags.  I'm sure
it's doable using the underlying bits, too, but I'm guessing this is going
to get complicated.

Thanks,
Danek


  reply	other threads:[~2011-03-03 23:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-03-03 23:00 Danek Duvall
2011-03-03 23:27 ` Mikael Magnusson
2011-03-03 23:58   ` Danek Duvall [this message]
2011-03-05  1:00     ` Danek Duvall
2011-03-05  9:20       ` Štěpán Němec
2011-03-05 14:15         ` Danek Duvall
2011-03-06 22:28           ` Oliver Kiddle
2011-03-06 22:59             ` Danek Duvall

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=20110303235836.GB12871@lorien.comfychair.org \
    --to=duvall@comfychair.org \
    --cc=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /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).