From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25958 invoked by alias); 5 Jun 2016 14:42:03 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 38614 Received: (qmail 1745 invoked from network); 5 Jun 2016 14:41:59 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:reply-to:subject:references:to:cc:from :organization:message-id:date:user-agent:mime-version:in-reply-to :content-transfer-encoding; bh=nC406RchprC8OSy/F06FgHrx0Y2d3bp+HaJ5gZSJ1+U=; b=lUFhKFnhDeE527hlJeHLpi5wHyV3tb4EJ2sm1ZJ7Eg+ETSoJc0UNVT2VvmkI0YK6b+ wcpLMDpyQArsLSlkWrc/Vwb0VmgfQMF73nPKqE9IVJsbOWUn1xopPzyNws7Z870GaMdL Pk1z8LPaF/02HXr8cMagZltpXHb/O96yTrHtG9cF5IW9JMkP5+q3NScgmiexHHBBZ3yh AkqCjpcX3/41c95DLvUw97XSfBg2DX32Sgl1Jz8jjdfJpheJkYjbxYGlDEabbgMiRuEe aAZe3OEt3mhTB6V71oC8+Cl19fE7Gj5qtqkkZOVzPRm6PsizEum+QcrBrqpoz249F/c7 fL3w== X-Gm-Message-State: ALyK8tLpDdB2Z/yyjH97PoOiajqi9WJ/k5owmINvLg5jKlSUei846c+P7UUmZUwc2jONEUuK X-Received: by 10.194.84.39 with SMTP id v7mr11345571wjy.74.1465137259477; Sun, 05 Jun 2016 07:34:19 -0700 (PDT) Reply-To: Marko Myllynen Subject: Re: [PATCH] zsh pidof completion References: <57514BF6.6080307@redhat.com> <20160603204040.GA32705@tarsus.local2> To: Daniel Shahaf Cc: zsh workers From: Marko Myllynen Organization: Red Hat Message-ID: <57543868.9020603@redhat.com> Date: Sun, 5 Jun 2016 17:34:16 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.8.0 MIME-Version: 1.0 In-Reply-To: <20160603204040.GA32705@tarsus.local2> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit 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 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