Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: How to make underlining of a command line disappear after an ordinary key press? (2)
- X-seq: zsh-users 14477
- From: Guido van Steen <gvsteen@xxxxxxxxx>
- To: Mikael Magnusson <mikachu@xxxxxxxxx>
- Subject: Re: How to make underlining of a command line disappear after an ordinary key press? (2)
- Date: Sat, 10 Oct 2009 15:07:42 -0700 (PDT)
- Cc: zsh-users@xxxxxxxxxx
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255212462; bh=rOIMvNuO3n8+I1kqQUkUmEGqwUszMimHleB7fqn+XVQ=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=6q1C8WgBGVLmjDZ9EB2xWWiqjL4jMYSBY9EF0Fs3+gdN4sYQeiZp2+goPVvSv/GNkSdg6lLxS97xAI2cwp+Rw+1T6H5lZ7IXRKMymNUOUmunqUN/W9DQms4ZWN2F4F5tlBk5WbT/gNK0whVE9R5ThppuqyNMaioEgc1tpcDXUUA=
- 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:Cc:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Jo+Gxzhf2yDCEVQI++FxqLvuUY3VvqFAU8ew5bRoI3EoVt+R5HNUA1dmt9DPNAdKAVLPh6phVPPAVpbh6XrNc2XfqUo0dnIkhq66WyTRJZEdBPGF+Kcng5bFFGqN+UYWUkpwx8vs+w3Yo3vPD0oilHqdpAyVehmHgivKwGSgBrc=;
- In-reply-to: <237967ef0910101440k4cf7e2e6t4cf2dc132b514ec@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi Mikeal,
I had actually tried that before, but I got:
"ordinary-key-press:2: job table full or recursion limit
exceeded"
Moreover "zle -N self-insert ordinary-key-press"
might bind some non-ordinary keys as well.
On the other hand I guess the widget could handle exceptions
for the non-ordinary-keys case.
I guess the recursion limit error is by the double self-insert. Without it:
"""ordinary-key-press(){
region_highlight=("0 0 underline")
}
zle -N self-insert ordinary-key-press
"""
seems to do nothing.
Thank you anyway!
Guido
--- On Sun, 11/10/09, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> From: Mikael Magnusson <mikachu@xxxxxxxxx>
> Subject: Re: How to make underlining of a command line disappear after an ordinary key press? (2)
[snip]
> I think you can just do zle -N self-insert
> ordinary-key-press
Get your new Email address!
Grab the Email name you've always wanted before someone else does!
http://mail.promotions.yahoo.com/newdomains/aa/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author