zsh-workers
 help / color / mirror / code / Atom feed
From: Marko Myllynen <myllynen@redhat.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: zsh workers <zsh-workers@zsh.org>
Subject: Re: [PATCH] zsh pidof completion
Date: Sun, 5 Jun 2016 17:34:16 +0300	[thread overview]
Message-ID: <57543868.9020603@redhat.com> (raw)
In-Reply-To: <20160603204040.GA32705@tarsus.local2>

Hi,

On 2016-06-03 23:40, Daniel Shahaf wrote:
> 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>

Thanks, that's exactly what I was missing! (It has been added since
5.0.2 which is in use on RHEL 7.)

>> 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?

Offer process names instead of process IDs, there might few potential
users for it in the tree already (_killall, _lldb, and _pgrep).

Thanks,

-- 
Marko Myllynen


      reply	other threads:[~2016-06-05 14:42 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
2016-06-05 14:34   ` Marko Myllynen [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=57543868.9020603@redhat.com \
    --to=myllynen@redhat.com \
    --cc=d.s@daniel.shahaf.name \
    --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).