Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: (large) initial support for combining characters in ZLE.
- X-seq: zsh-workers 25722
- From: "Mikael Magnusson" <mikachu@xxxxxxxxx>
- To: "Peter Stephenson" <pws@xxxxxxx>
- Subject: Re: PATCH: (large) initial support for combining characters in ZLE.
- Date: Mon, 22 Sep 2008 20:16:58 +0200
- Cc: "Zsh Hackers' List" <zsh-workers@xxxxxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:cc:in-reply-to:mime-version:content-type :content-transfer-encoding:content-disposition:references; bh=72Hb7O9fZ3Wjydmn/8JO8IIvPnO4yPnmLgfplp/z4XU=; b=ZAFZB6g3HfTPHKdsccPgiE/Z7qvnrEJ4/mitNPqjYfBefnYizE8l2HvziZKX3K1bpE ReDNH/Ge/nz88hAgc6drqXUYJYYAhGWRqsUpaJ19I/CO2mtI0Xee5vleoC34tiCaFVA8 rbf0r/STIPJ5WIwJKfxy6hVVMYM+nxHtcVLGs=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:cc:in-reply-to:mime-version :content-type:content-transfer-encoding:content-disposition :references; b=dBWprQBeVau0MgVXHHrYEX+LKP9D1WpzHsef7uTdCBvPE6R1QLTMznb7Z5vu9YtIuR aOrkc0zuwaxdiNZBmy+puwDxtsp2EJhitIMZ5Z4lvz7bMisoqS5uCKVuWNZeQrCTx16+ DNjIXiFOx0FLClaX5tYgnu6H6EixVYQMKplLI=
- In-reply-to: <200804160847.m3G8lsth005941@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20080413175442.0e95a241@pws-pc> <237967ef0804140634l7e02ce6fofff7f3f3ec6c8d7c@xxxxxxxxxxxxxx> <20080414145425.566bcb92@news01> <237967ef0804150658h1f8df5e5w422955fc6b92fe29@xxxxxxxxxxxxxx> <20080415174645.0590d589@news01> <237967ef0804151828k4d09afc1p1a86283359d78d97@xxxxxxxxxxxxxx> <200804160847.m3G8lsth005941@xxxxxxxxxxxxxx>
2008/4/16 Peter Stephenson <pws@xxxxxxx>:
> "Mikael Magnusson" wrote:
>> zsh -f
>> setopt interactivecomments
>> function toggleopt() {
>> #is there some easier way to do this?
>> [[ $options[$1] = on ]] && setopt no$1 || setopt $1
>> }
>> compdef _options toggleopt=setopt
>> function _togglecombining() {
>> toggleopt combiningchars
>> }
>> zle -N _togglecombining
>> bindkey ^K _togglecombining
>> print -z $'a\u0342'
>> <press ctrl-k and then left, and ctrl-k again>
>
> I haven't looked at the behaviour of user-defined widgets at all, which
> will need much more work, but on exit from a widget is a good place to
> fix up the cursor position.
>
> Some more for the FAQ, too.
I suddenly realized while doing something completely different that this
might still work (where work is defined as not work), and it does.
zsh -f
print -z $'a\u0342'
<alt-x>push-input
setopt combiningchars
boom
--
Mikael Magnusson
Messages sorted by:
Reverse Date,
Date,
Thread,
Author