Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Dynamic colored command in zsh



On 19 September 2010 16:39, Mikael Magnusson <mikachu@xxxxxxxxx> wrote:
> On 19 September 2010 13:50, Julien Nicoulaud <julien.nicoulaud@xxxxxxxxx> wrote:
>> My version merged with Roy's last one that handles inconsistent spacing in
>> the command: http://gist.github.com/586698
>>
>> Nobody found how to trigger it whenever the buffer changes ? I tried with
>> _refresh without success.
>
> I posted a crazy thing a while back, see
> http://www.zsh.org/mla/workers/2009/msg01225.html , that function is
> called every time the line is redrawn _including on cursor movement_,
> so it is probably very slow, but it should at least look correct. It
> requires patching zsh though, so it's not very portable.

I should perhaps also note that this patch breaks some things like ^r
history search in some subtle ways. (and possibly other things).

-- 
Mikael Magnusson



Messages sorted by: Reverse Date, Date, Thread, Author