Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Overriding a yank* widget in zle
- X-seq: zsh-workers 28556
- From: Wayne Davison <wayned@xxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Overriding a yank* widget in zle
- Date: Thu, 30 Dec 2010 13:59:27 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:sender:received:date :x-google-sender-auth:message-id:subject:from:to:content-type; bh=0bzqp1cginjArShWrkirnvJ0qVyj8fiNbiJvwdlr1zM=; b=nvgvimJLneC600PI7lMj3sLY4H/p5mNjCzgu2Zau14/Vt9AHct8VLmegbPy7mGb6dG CSO+Wd1NH+Z/XrKPXhBqCQ6QuiIa1eoz5AE4FNGGy7qfHzNAhE9baplE8UPHSXTnOS5S 3c8EhaHDAFl0jm9h8GQjGmW/uTuCVXZJSjyGM=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:content-type; b=ABG6ebXLSrpoHqyF12cKwOwLF3hoj+T3c0/Jpctuky30HCeVwMrcOjzj8CwJKvHcgH GyJwA/GmRVcPcuSGWbqt6mcNIViu0HqsgNti/30HM7rV1kE1KNUlix9s1SQTd/RqqcNk KcR7z33VGRIbFp3odkqvKYZFeB37iOFiymHEA=
- 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
- Sender: 4wayned@xxxxxxxxx
I'm trying to figure out how to override the zle yank widget without breaking the ability to use yank-pop, and this does not appear to be possible in the current code. ÂA query in early 2005 on the subject went unanswered, so hopefully I didn't miss some simple solution to this.
I've coded up a patch that adds the -y option to zle so that I can define a "zle -Ny yank" widget (as well as yank-pop), which marks it as being a ZLE_YANK equivalent. ÂI'm not sure that this is the right solution, so see what you think of the change.
..wayne..
Messages sorted by:
Reverse Date,
Date,
Thread,
Author