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 14484
- From: Guido van Steen <gvsteen@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: How to make underlining of a command line disappear after an ordinary key press? (2)
- Date: Sun, 11 Oct 2009 20:06:34 -0700 (PDT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255316794; bh=jt89rhS80rNsivaClmJkTmhRs4BnpU0hIkwWOYtLPK8=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=yWCIkFUzwb8CKOeknTW1QLxfKNWgncw8BaNErKeNRbqtFLULWtGFggZlLlcbFbfvDdLpZ8oDIxmSmktN6/q6Yq4pEE5ZEbo2VPPxKxg3CypT8yyhoF8oh8gqLgNQlsjX3prmZb5DA/RrvnRnh4zwcgm76XoWgAThET1vIkah/kQ=
- 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:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=mHw/czyz1o5dKBecL5NycGN9186NCBM90Ee4OmcN/9luD+ynyX5KRxIoxwJ01jplhVF1twIM5zXKrYHutp4KzsaAFl/fA8u5Fjm/sEUQcEoeSdVn4h5s6uYpf9dSD/xQQBVzByO2dK/R6c/b5UKvumdQALIEudIbvvfbnTQZV1o=;
- In-reply-to: <20091011185836.1c887e18@pws-pc>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi Peter,
You are right. I had missed the leading dot.
However, as far as I can tell,
ordinary-key-press(){
if [[ $KEYS = [[:print:]] ]]; then
region_highlight=("0 0 underline")
fi
zle .self-insert
}
zle -N .self-insert ordinary-key-press
"""
does not remove the underlining at all.
Apart from this, I also tried to rebind ALL printable keys
seperately using a for loop. This did work, apart from rebinding
the space bar.
Any idea on how to rebind the space bar? (I made sure that space
bar is not bound to magic-space.)
Thanks a lot!
Guido
--- On Mon, 12/10/09, Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx> wrote:
> From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
> Subject: Re: How to make underlining of a command line disappear after an ordinary key press? (2)
> To: zsh-users@xxxxxxxxxx
> Date: Monday, 12 October, 2009, 12:58 AM
[snip]
> Are you sure you called .self-insert and not self-insert
> within the new
> widget? If you used self-insert the widget would call
> the function over
> and over, with that error. If you use .self-insert
> you're guaranteed
> it's calling the internal widget and you can't get
> recursion.
[snip]
> if [[ $KEYS = [[:print:]] ]]; then
> # reset behaviour for any printable character
> fi
> zle .self-insert
[snip]
> By the way, with space be sure it's not bound to
> magic-space.
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