Re: [code] [textadept] Customize status bar

From: Qwerky <>
Date: Sun, 7 Jul 2019 18:00:08 -0600

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.



On 2019-07-07 14:56, Qwerky wrote:
> Hi.  I found ui.bufstatusbar_text in ui.lua.  I copied ui.lua to
> /userdata/ and edited it there, but the changes had no effect.  Should
> my edited ui.lua be placed in /userdata/core/?  I tried it there, but
> again no effect. Does it need to be edited in place?
> Also, though I see how to edit that part of the status bar, I don't
> see how to move ui.bufstatusbar to the left, and the message portion
> to the right.
> Please explain hooking up my own events (in preference to editing source).
> Thanks,
> qwerky
> On 2019-07-06 18:32, Mitchell wrote:
>> Hi,
>> On Sat, 6 Jul 2019, Qwerky wrote:
>>> Hi.  SciTe allows to customize the status bar (what fields, what order,
>>> etc.).  Does textadept allow the same?
>>> In particular, in addition to customizing the fields and their
>>> order, I wish
>>> to have the various information fields (line, column, etc.)
>>> displayed on the
>>> left end of the status bar, and messages displayed on the right side
>>> of the
>>> status bar.  Info fields on the left is the common standard that I
>>> have found
>>> in all other editors I have used.
>> `ui.statusbar_text`[1] and `ui.bufstatusbar_text`[2] are what you are
>> interested in. They are the left and right statusbar, respectively.
>> Search Textadept's source to see where they are used. Hooking up your
>> own events should override Textadept's default ones, but if all else
>> fails, edit Textadept's source.
>> Cheers,
>> Mitchell
>> [1]:
>> [1]:

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Sun 07 Jul 2019 - 20:00:08 EDT

This archive was generated by hypermail 2.2.0 : Mon 08 Jul 2019 - 06:38:26 EDT