[code] [textadept] Feature request: Reordering tab bar items

From: Procházka Lukáš Ing. <LPr.att.pontex.cz>
Date: Wed, 29 May 2019 18:03:44 +0200

Hello Mitchel,

spoken ~3/4 years ago -

- would it be possible to implement some API to allow moving tab bar items left/right?

Suppose having toolbar showing:

[F.txt] [A.txt] [Message box] [External Tool Output] [C.txt]

- it would be handy to have some API to reorder items into a user defined order, to achieve e.g.:

[Message box] [External Tool Output] [A.txt] [C.txt] [F.txt]

(
Invulnerable way enough might be adding a variable (e.g. _TB "Tool Bar" into - _G?) as a table of _BUFFER members (index in _TB be position from left).

In the sample above:

_BUFFERS = { [1] = <data related to F.txt>,
               [2] = <data related to A.txt>,
               [3] = <data related to MessageBox>,
               [4] = <data related to External Tool>,
               [5] = <data related to C.txt>,
}

and
        _TB = { _BUFFERS[1], _BUFFERS[2], _BUFFERS[3], _BUFFERS[4], _BUFFERS[5], }

and after reordering
        _TB = { _BUFFERS[3], _BUFFERS[4], _BUFFERS[2], _BUFFERS[5], _BUFFERS[1], }

events.TAB_CLICKED (index_of_clicked_tab) should retrieve _BUFFERS[_TB[index_of_clicked_tab]] in this case, to keep backward compatibility...
)

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 | IČO: 40763439
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 Wed 29 May 2019 - 12:03:44 EDT

This archive was generated by hypermail 2.2.0 : Thu 30 May 2019 - 06:27:19 EDT