zsh-workers
 help / color / mirror / code / Atom feed
From: Daniel Shahaf <d.s@daniel.shahaf.name>
To: Marko Myllynen <myllynen@redhat.com>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: [PATCH] zsh pidof completion
Date: Fri, 03 Jun 2016 20:40:40 +0000	[thread overview]
Message-ID: <20160603204040.GA32705@tarsus.local2> (raw)
In-Reply-To: <57514BF6.6080307@redhat.com>

Marko Myllynen wrote on Fri, Jun 03, 2016 at 12:20:54 +0300:
> Otherwise it works nicely but I'm a bit wondering one thing here: -o
> can either repeated on the command line of the PID to be omitted can be
> provided as a comma-separated list but I don't see a readily available
> method to complete a comma-separated list. No biggie, but if there's
> trivial way to do that, please let me know.

I think you're looking for _sequence:

% compdef '_sequence -s , _pids' f
% f <TAB>

Or perhaps _values (which is what «mount -o <TAB>» uses).

> It might also be nice to provide a generic _procnames type completion
> like there's one now for _pids but I'll leave it for a separate effort
> now.
> 

What would _process_names do?

Cheers,

Daniel


  reply	other threads:[~2016-06-03 20:40 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-03  9:20 Marko Myllynen
2016-06-03 20:40 ` Daniel Shahaf [this message]
2016-06-05 14:34   ` Marko Myllynen

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=20160603204040.GA32705@tarsus.local2 \
    --to=d.s@daniel.shahaf.name \
    --cc=myllynen@redhat.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).