Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: zle -R does it support color?
- X-seq: zsh-users 15781
- From: Wendell Hom <wendell_hom@xxxxxxxxx>
- To: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>, zsh-users@xxxxxxx
- Subject: Re: zle -R does it support color?
- Date: Wed, 9 Feb 2011 12:08:41 -0800 (PST)
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1297282121; bh=4+IGP45PUZ6MBTRTWGxz3pbIpjGglnaQR/kuXIhX4QI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=Ib4kWhiyl1c+pK8cqax5pkNiPa8foilWADxWDjqr4+HBoHKf4WDBkXoCT/4mES+Qp3yw6FJhoBoFrPCZLSKEMyO2yOWvxkjNeSjLafEPaSU103KYeyvzsGQOdDT8zrVJJZmiCGIGinOb3hc7QnJsqr5nerqYn/Cs6YTTIcMFK6Q=
- Domainkey-signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:References:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type; b=xREIQk1kv6L7GFLdOvEY+aKK62+6sv0LUMBDto3Q+4BgrkBwxi43Bt6S2MMuOqEIitlXMjPbZhBZxXHeL9+zBsEUQo5XMF3Ht9Vta70koO79vNdvOxz8k4hyn0s7DBqIQ+WHhn1+9DVUfaRo3eynT0VAE5UTUIgN+L1sA5I0UJ4=;
- In-reply-to: <110209001134.ZM24236@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <273791.72265.qm@web112305.mail.gq1.yahoo.com> <110208212527.ZM24140@torch.brasslantern.com> <96888.89621.qm@web112304.mail.gq1.yahoo.com> <110209001134.ZM24236@torch.brasslantern.com>
Hi Bart,
Thanks for pointing out the widget. It looks like the same general idea (except
mine is customized towards my needs); there's a loop, a read -k, and the use of
zle -R. I guess that means there will be no color support there either.
I'll take a look at POSTDISPLAY and region_highlight that you mentioned before
when I get to it and see if I can use it.
Thanks!
Wendell
________________________________
From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
To: zsh-users@xxxxxxx
Sent: Wed, February 9, 2011 12:11:34 AM
Subject: Re: zle -R does it support color?
On Feb 8, 10:15pm, Wendell Hom wrote:
}
} The way my "completion" widget works is that when it is invoked, it
} enters a loop and waits for the next key to be pressed.
}
} Every time a key is pressed, the new completion list is redisplayed
} automatically.
Have you looked at Functions/Zle/incremental-complete-word ? Thus spake
"man zshcontrib":
This allows incremental completion of a word. After starting this
command, a list of completion choices can be shown after every
character you type, which you can delete with ^H or DEL. Pressing
return accepts the completion so far and returns you to normal
editing (that is, the command line is _not_ immediately executed).
You can hit TAB to do normal completion, ^G to abort back to the
state when you started, and ^D to list the matches.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author