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=DKIM_SIGNED,DKIM_VALID, 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 1dbccac1 for ; Tue, 5 Nov 2019 03:54:47 +0000 (UTC) Received: (qmail 27729 invoked by alias); 5 Nov 2019 03:54:41 -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: 24402 Received: (qmail 9187 invoked by uid 1010); 5 Nov 2019 03:54:41 -0000 X-Qmail-Scanner-Diagnostics: from mail-yb1-f174.google.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(209.85.219.174):SA:0(-1.9/5.0):. Processed in 0.865904 secs); 05 Nov 2019 03:54:41 -0000 X-Envelope-From: dana@dana.is X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.219.174 as permitted sender) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=dana-is.20150623.gappssmtp.com; s=20150623; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=d0P/ZFnP9FeD8Dcr8N45K1l+xQRc42pdtD5IxQXJxoo=; b=grNJo8AUhPnE5U9fG3yi1mY2S1+03m9zy4wsWTkKgtod9o2CpeAvT0cOv8/0bm3S7y EEpTVUBt4PLigSWlGllJgvpmEO7pZJ0MwwzGY+PFHCM2s/g3K7OMKvzpL0rMt3xnIccj pRFCRSHGwGYsb5Jo8pDbuDSGhGFzlEixvbkiudxPBHREchtxFA4lJhplFPpaxjDQPN8G 2tQ/70DmhWWElMQS9xrmI3rn5uSjiMgVfLmiK/nAfCbo2xZ4AG70wlMXcE4w8CHRVeXs jrp0lAIg3JapPw/fOObkZhfpODgxMqdDCCcyyygBXHwDOxqSJoxMkfSmm7fS+n7LTvre tDqQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=d0P/ZFnP9FeD8Dcr8N45K1l+xQRc42pdtD5IxQXJxoo=; b=MqfdEvwReGq0F8SbvsHFE2wOl5jkoakbuoz30qKpTFkQ4rppFswNwgtIs3C9Y0fAVE uR19gmfLannOno6KIEO+IeecNi/WkhllTAGUXuP89MAfhwc+J707XEfPS/64Uevast4O DJ31EWPzRogp5fLLSz+kMUnh6D3d3AnnWJyZ+9iS3E/5fUFbys2+mvLnmMt06Rnr25kl zMzrJI7yoSbfSEq+2VepysAtwf0vVoPceIY4v5AE9g2YTMff00tVUsQZB3VL4LdZmvbG gCpAtKEjuhNWzbI0fLvkzqY031yQGNsoiSj3k2TrwZVVGfXht0yXNU7D51bQJUwr446c uc+A== X-Gm-Message-State: APjAAAXwKgOtTh2Ln5oAGcnthPca0eGgMr1B+R5jytLI6+hr8Xpvx1Xg U+YjBW73yu8fc9PcwK6BFysPVavR5p8kXQ== X-Google-Smtp-Source: APXvYqw8+ayPUoAhU/2uqUxYTdyBTzQwmSsoWSZzakRrqvSsg2l6/E6aSwa3sVIQ1eF/tfgjISGOHw== X-Received: by 2002:a25:3182:: with SMTP id x124mr27746734ybx.33.1572926047165; Mon, 04 Nov 2019 19:54:07 -0800 (PST) Content-Type: text/plain; charset=utf-8 Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: rxvt completion From: dana In-Reply-To: <20191105031809.GD28517@blackswan> Date: Mon, 4 Nov 2019 21:54:05 -0600 Cc: Zsh Users Content-Transfer-Encoding: quoted-printable Message-Id: References: <20191104220941.GC28517@blackswan> <20191105031809.GD28517@blackswan> To: Dave Woodfall X-Mailer: Apple Mail (2.3445.104.11) On 4 Nov 2019, at 21:18, Dave Woodfall wrote: > There are some options that are the same, but urxvt has many more. It looks like almost a super-set, so you could just do something like: args=3D( ... ) # Common arg specs # Detect urxvt by looking for 'unicode' in the -help output, or = whatever # would actually work here, idk if _pick_variant urxvt=3Dunicode rxvt -help; then args+=3D( ... ) # urxvt-specific arg specs else args+=3D( ... ) # rxvt-specific arg specs fi _x_arguments $args The existing call to urxvt for the long_args thing probably (?) needs = changed too, so that it uses $words[1] (the actual command being completed for) together with _call_program =E2=80=94 lots of examples of that in the = repo too dana