[code] [textadept] Tab bar: labels shown; reordering

From: Procházka Lukáš Ing. <LPr.att.pontex.cz>
Date: Tue, 18 Sep 2018 13:11:51 +0200

Hello,

1.

when I create a new buffer by

local buf = buffer.new(); buf._type = "test"

a new tab with the label "Untitled" appears in the tab bar.
And only when I click another tab and back the last tab, the buffer name "test" is shown in the tab bar.

What function (event) should I call (emit) to tell the tab bar to show/refresh the buffer label (be it ._type or .filename or another member)?

2.

Is it possible to reorder buffers show in the tab bar? I'd like buffers '[...]' be shown first, so e.g. let's have buffers:

File2.txt | [Message Buffer] | File1.txt | [My Debug Buffer] ... (opened in this order)

and to be reordered into:

[Message Buffer] | [My Debug Buffer] | File1.txt | File2.txt ... (new order)

TIA.

Best regards,

Lukas

-- 
Ing. Lukáš Procházka | mailto:LPr.att.pontex.cz
Pontex s. r. o.      | mailto:pontex@pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396
-- 
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 Tue 18 Sep 2018 - 07:11:51 EDT

This archive was generated by hypermail 2.2.0 : Wed 19 Sep 2018 - 06:55:01 EDT