Re: [code] [textadept] Customize status bar

From: Mitchell <m.att.foicica.com>
Date: Mon, 8 Jul 2019 11:26:45 -0400 (EDT)

Hi,

On Sun, 7 Jul 2019, Qwerky wrote:

> Update.  I found that editing the original ui.lua in place did cause the
> changes to appear. Then I restored the original ui.lua, and found out how to
> copy just that event handler function to a new file in my /userdata/modules/
> directory, edit it there, and then require that module in init.lua.  So my
> ui.bufstatusbar_text is as desired for now.
>
> But I have not yet learned how to place ui.bufstatusbar on the left, and
> ui.statusbar on the right.  I have look in the /src/ files, the /core/ files,
> and the /modules/ files, but could not find where those positions are
> established.  Need some guidance here.

In your events, just swap which statusbars you are writing to. For example, write buffer information to `ui.statusbar_text`.

I am glad to hear you are tinkering around with things and figuring out how stuff works. It's the best way to learn :)

Cheers,
Mitchell

-- 
You are subscribed to code.att.foicica.com.
To change subscription settings, send an e-mail to code+help.att.foicica.com.
To unsubscribe, send an e-mail to code+unsubscribe.att.foicica.com.
Received on Mon 08 Jul 2019 - 11:26:45 EDT

This archive was generated by hypermail 2.2.0 : Tue 09 Jul 2019 - 06:49:21 EDT