From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI, RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 690aa3fc for ; Tue, 5 Nov 2019 03:20:59 +0000 (UTC) Received: (qmail 13495 invoked by alias); 5 Nov 2019 03:20:52 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: List-Unsubscribe: X-Seq: 24401 Received: (qmail 17912 invoked by uid 1010); 5 Nov 2019 03:20:52 -0000 X-Qmail-Scanner-Diagnostics: from 8.smtp.34sp.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.102.0/25622. spamassassin: 3.4.2. Clear:RC:0(46.183.8.243):SA:0(-1.9/5.0):. Processed in 3.6939 secs); 05 Nov 2019 03:20:52 -0000 X-Envelope-From: dave@tty1.uk X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: none (ns1.primenet.com.au: domain at tty1.uk does not designate permitted sender hosts) Date: Tue, 5 Nov 2019 03:18:09 +0000 From: Dave Woodfall To: Zsh Users Subject: Re: rxvt completion Message-ID: <20191105031809.GD28517@blackswan> Mail-Followup-To: Zsh Users References: <20191104220941.GC28517@blackswan> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: X-Authenticated-As: dave@unrealize.co.uk X-OriginalSMTPIP: 82.40.94.2 X-34spcom-MailScanner-Information: Please contact the ISP for more information X-34spcom-MailScanner-ID: 712F61A33.A4DAC X-34spcom-MailScanner: Found to be clean X-34spcom-MailScanner-SpamCheck: not spam, SpamAssassin (score=-10, required 6.5, autolearn=disabled, RCVD_IN_DNSWL_NONE -0.00, X34SP_OVERRIDE -10.00) X-34spcom-MailScanner-From: dave@tty1.uk On Mon 4 Nov 2019 21:04, dana put forth the proposition: > On 4 Nov 2019, at 16:09, Dave Woodfall wrote: > > If I submit a patch for rxvt completion, would it be accepted, as it > > would mean removing rxvt from _urxvt's compdef? > > > > I'm guessing that some *nixes out there rename urxvt to rxvt? > > Debian and its derivatives do (or it goes by both names at least). > > Usually when there are different implementations of a tool with the same name, > you use _pick_variant and/or check $OSTYPE to determine which one to complete > for. Depending on how similar they are, you might keep them both in the same > function, or make them separate and conditionally call one from the other. I'm > not sure which is better for rxvt (do they still have a lot of shared options > or are they completely different?), but if you grep the repo for _pick_variant > you'll see lots of examples you can borrow from > > dana > Thanks, I'll look for that. A quick grep shows quite a few _pick_variant and $OSTYPE in /usr/share/zsh/5.6.2/functions/ so I should be able to put something together. > do they still have a lot of shared options or are they completely > different?) There are some options that are the same, but urxvt has many more. rxvt: [-display string] [-tn string] [-geometry geometry] [-C] [-iconic] [-/+rv] [-/+ls] [-/+j] [-/+sb] [-/+sr] [-/+st] [-/+si] [-/+sk] [-/+sw] [-/+ip] [-/+ipf] [-/+ut] [-/+vb] [-/+mcc] [-/+tcw] [-bg color] [-fg color] [-pixmap file[;geom]] [-fb fontname] [-fn fontname] [-fm fontname] [-km mode] [-im name] [-pt style] [-name string] [-title string] [-n string] [-cr color] [-pr color] [-bd color] [-sl number] [-w number] [-b number] [-lsp number] [-sbt number] [-mod modifier] [-xrm string] [-e command arg ...] urxvt: [-display string] [-tn string] [-geometry geometry] [-C] [-iconic] [-cd string] [-dockapp] [-/+rv] [-/+ls] [-mc number] [-/+j] [-/+ss] [-/+ptab] [-/+sb] [-/+sr] [-/+st] [-sbt number] [-/+si] [-/+sk] [-/+sw] [-/+ip] [-/+tr] [-tint color] [-sh number] [-blr HxV] [-fade number] [-fadecolor color] [-/+ut] [-/+vb] [-/+tcw] [-/+insecure] [-/+uc] [-/+bc] [-/+pb] [-bg color] [-fg color] [-hc color] [-cr color] [-pr color] [-pr2 color] [-bd color] [-pixmap file[;geom]] [-icon file] [-fn fontname] [-fb fontname] [-fi fontname] [-fbi fontname] [-/+is] [-im name] [-pt style] [-imlocale string] [-imfont fontname] [-name string] [-title string] [-n string] [-sl number] [-embed windowid] [-depth number] [-visual number] [-/+override-redirect] [-pty-fd fileno] [-/+hold] [-w number] [-b number] [-/+bl] [-lsp number] [-letsp number] [-/+sbg] [-mod modifier] [-/+ssc] [-/+ssr] [-pe string] [-e command arg ...] Cheers /dw