Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Overriding a yank* widget in zle
- X-seq: zsh-workers 28564
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- Subject: Re: Overriding a yank* widget in zle
- Date: Fri, 31 Dec 2010 15:23:19 -0800
- Cc: zsh-workers@xxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received :in-reply-to:references:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=y9jmsJWL5vsed11ue7kLYnBQYNco7AnzR5un6e4Q/Eo=; b=FyvEia5fU6p5sjGiuY3SC+8Sq6dufnYMaEQRNezjyk/hsF6NZbsV0zyuh2bswEVc/4 mx9yzsQ8u7IIhZ52tQHt4pud+qR9ie8Ij+27K6Mzs+yXGXPyfggNjq3TwmStbFWWsWU+ J86WGum85bmsGDR7N0tIeKjaguNbniemP7lHw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:cc:content-type; b=dooxlU8pj2OyL06fpSrb68DlUpgVo9TcvkBcIvD4W8fC44+/VSjvF1UhmMPOeFmjye xrUbsFpqjqXXtAfzA8kPPaeSdHcXhGHak3vyQT29yWA2lN9DyO/PvyfycIYVICpHV4F3 NxzrO5EUFyARtCUyqzuf0wsASozsy774s6DjY=
- In-reply-to: <101231002820.ZM7583@xxxxxxxxxxxxxxxxxxxxxx>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <AANLkTikgELYV5WuDOD9XEPRX7mUiGhtObx6Q5v=DzB2S@xxxxxxxxxxxxxx> <101231002820.ZM7583@xxxxxxxxxxxxxxxxxxxxxx>
- Sender: 4wayned@xxxxxxxxx
On Fri, Dec 31, 2010 at 12:28 AM, Bart Schaefer
<schaefer@xxxxxxxxxxxxxxxx>wrote:
> Perhaps a general solution would be that for *any* widget, not just a
> completion one, it should be possible to name a "prototype" widget whose
> behavior the new widget is intended to simulate or replace.
>
That seems like a great solution to me.
The only other solution to this that I've thought of would be to follow the
> example of the auto-suffix-remove and auto-suffix-retain widgets, that is,
> have a special widget whose only effect is to have the side-effect of
> enabling yank-pop on the next interaction: yank-pop-enable perhaps (is
> yank-pop-disable ever needed?).
>
Something like that would work if done right. I tried something along those
lines (it was named "yank-noop"), but hadn't worked out the right bits to
make the flags stick around long enough before I changed direction. I like
the prototype idiom best, though.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author