Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to rebind the hyphen in .zshrc?
- X-seq: zsh-users 14499
- From: Guido van Steen <gvsteen@xxxxxxxxx>
- To: ZSH User List <zsh-users@xxxxxxxxxx>
- Subject: How to rebind the hyphen in .zshrc?
- Date: Thu, 15 Oct 2009 15:12:55 -0700 (PDT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255644775; bh=pqFYjH1zRkz3BGgjy33R3qYnvBM5RCW7o3Up7WdHAss=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6WkR49l9aOQkTM9jAif213gNVS61VldOebuyulrnL4PQ0oumQMZ/+GYq3kwvz/46Emdc3JZLTFvfrK4w0swF+CaRnNVGeGqSwVg/JL3Ci1P1AnyUOQmDpavKYrzM/lY9Oxexuz4S3nExJJcyQx03wZiWbglpvlAs0vcuglL2h8o=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Z+/nIo9pq7ONztPQur3C1yvv9b00nhtRuA/SH721BvzdJuTrxN45Zr1lRaB0ksUOLBPZJXfhBkQ3OR9UEVlq/6iJESF9f3YS1goVV0LaUB4sPzOha6kIcz0EQScieRYcG9tersik8nTT7weikacyUwkOI+bcorijHCowqH8lJBo=;
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Dear all,
In my .zshrc file I would like to include something like:
rebind-hyphen {
# intended pre-processing
zle .self-insert
# intended post-processing
}
zle -N rebind-hyphen
bindkey "-" rebind-hyphen
This produces the following error:
"rebind-hyphen" undefined-key
If I add:
bindkey "a" rebind-hyphen
or
bindkey " " rebind-hyphen
there is no error at all and "a" or " " gets bound.
So, I guess hyphen must be a special input character to zsh.
Is there a way around this??
Thanks!
Guido
New Email names for you!
Get the Email name you've always wanted on the new @ymail and @rocketmail.
Hurry before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author