Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
How to make underlining of a command line disappear after an ordinary key press?
- X-seq: zsh-users 14474
- From: Guido van Steen <gvsteen@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: How to make underlining of a command line disappear after an ordinary key press?
- Date: Sat, 10 Oct 2009 03:16:02 -0700 (PDT)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1255169763; bh=WDsaPvbubZmSNMCWLqlf7ym3/pXOuqi/Im97I1UlSOY=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=dCRjMAst4ov33vEMgE9ypetCC2/IDKF7r4Xz6xd7z4FoXZ7XnpureqN/MAEKjZPjv2dCCqsAMbH5XV3Ju98B6kerI0bICafoRHKhCrL7si6+Vv2UQVf6WwxQL+rQAhba1FdUpAx6eNki1yGGkFViJ35ofl7RlQRTwZ984C3TRvk=
- 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=s7srIgiCu+ggZiihg4XrEEEmq/zW/UV1sxUKvZGsr+CmAFkt39i1Dc+tDyZmz8GKd2c1IC8eCATBVx0Y4jRjENGFgGiEuiOPwgxGRTKCxsA4wNAtuoRLsr8WORQACygZLG4H2U5VFVMLOapHbNjBpcAAp9t/TUEMmDt46wVeCOI=;
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi all,
I am trying to write a widget, let me call it
"underline_cmdline_partially". Not very urprisingly,
its purpose is to underline a part of the command line.
It does so by calling something like
"""region_highlight=("$my_mbegin $MEND underline")""".
Now, if the next key pressed is an ordinary key - like
"a" - I would like the partial underlining of the
command line to disappear.
Is there an easy way to achieve this e.g. by calling
"zle_highlight=(region:standout special:standout
isearch:underline)" - the default setting - in the
widget "underline_cmdline_partially"?
Thanks in advance,
Guido
Send instant messages to your online friends http://uk.messenger.yahoo.com
Messages sorted by:
Reverse Date,
Date,
Thread,
Author