Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: rxvt completion
- X-seq: zsh-users 24402
- From: dana <dana@xxxxxxx>
- To: Dave Woodfall <dave@xxxxxxx>
- Subject: Re: rxvt completion
- Date: Mon, 4 Nov 2019 21:54:05 -0600
- Cc: Zsh Users <zsh-users@xxxxxxx>
- 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==
- In-reply-to: <20191105031809.GD28517@blackswan>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-unsubscribe: <mailto:zsh-users-unsubscribe@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <20191104220941.GC28517@blackswan> <F9E8725B-902D-40CE-8121-A57BC825B932@dana.is> <20191105031809.GD28517@blackswan>
On 4 Nov 2019, at 21:18, Dave Woodfall <dave@xxxxxxx> 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=( ... ) # Common arg specs
# Detect urxvt by looking for 'unicode' in the -help output, or whatever
# would actually work here, idk
if _pick_variant urxvt=unicode rxvt -help; then
args+=( ... ) # urxvt-specific arg specs
else
args+=( ... ) # 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 — lots of examples of that in the repo too
dana
Messages sorted by:
Reverse Date,
Date,
Thread,
Author