zsh-users
 help / color / mirror / code / Atom feed
From: Dave Woodfall <dave@tty1.uk>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: rxvt completion
Date: Tue, 5 Nov 2019 03:18:09 +0000	[thread overview]
Message-ID: <20191105031809.GD28517@blackswan> (raw)
In-Reply-To: <F9E8725B-902D-40CE-8121-A57BC825B932@dana.is>

On Mon 4 Nov 2019 21:04,
dana <dana@dana.is> put forth the proposition:
> 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
>

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

  reply	other threads:[~2019-11-05  3:20 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
2019-11-05  3:18   ` Dave Woodfall [this message]
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=20191105031809.GD28517@blackswan \
    --to=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).