zsh-users
 help / color / mirror / code / Atom feed
From: dana <dana@dana.is>
To: Dave Woodfall <dave@tty1.uk>
Cc: Zsh Users <zsh-users@zsh.org>
Subject: Re: rxvt completion
Date: Mon, 4 Nov 2019 21:04:00 -0600	[thread overview]
Message-ID: <F9E8725B-902D-40CE-8121-A57BC825B932@dana.is> (raw)
In-Reply-To: <20191104220941.GC28517@blackswan>

On 4 Nov 2019, at 16:09, Dave Woodfall <dave@tty1.uk> 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


  reply	other threads:[~2019-11-05  3:04 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-11-04 22:09 Dave Woodfall
2019-11-05  3:04 ` dana [this message]
2019-11-05  3:18   ` Dave Woodfall
2019-11-05  3:54     ` dana

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=F9E8725B-902D-40CE-8121-A57BC825B932@dana.is \
    --to=dana@dana.is \
    --cc=dave@tty1.uk \
    --cc=zsh-users@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).