From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16123 invoked by alias); 3 Jun 2016 20:40:43 -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: 38590 Received: (qmail 2469 invoked from network); 3 Jun 2016 20:40:42 -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 Date: Fri, 03 Jun 2016 20:40:40 +0000 From: Daniel Shahaf To: Marko Myllynen Cc: zsh workers Subject: Re: [PATCH] zsh pidof completion Message-ID: <20160603204040.GA32705@tarsus.local2> References: <57514BF6.6080307@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <57514BF6.6080307@redhat.com> User-Agent: Mutt/1.5.23 (2014-03-12) 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 Or perhaps _values (which is what «mount -o » 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