Re: [code] [textadept] Reorder tabs

From: Procházka Lukáš Ing. <>
Date: Wed, 10 Jul 2019 16:34:58 +0200


On Thu, 04 Jul 2019 21:22:29 +0200, Qwerky <> wrote:

> Hi Lukas,
> Thanks for your efforts. Where should the module be placed?

AFAIK the module is to be placed into "modules" directory in TA
installation dir.
Cons is that you have to "refresh" the module with each TA installation.

Alternatively, you can put the TabBarMan.lua module in your home
directory/modules, i.e. "... Document and Settings ..." dir under Windows.


especially "Installing Modules";
this allows you to have modules placed independently on TA installation.

(Note also that "~/ denotes the user’s home directory. On Windows machines
this is the value of the “USERHOME” (or similar?)")

Third option is to launch TA with -u option which redirect "~" to the
directory specified after "-u" option.

> Once
> placed, how is it used?

Just click with the RMB on the tab bar - 4 options will appear in the
bottom of the popup menu which allow to reorder tabs.
See the print-screen attached.

> Does textadept need to be restarted?

No, once TabBarMan has been loaded (which occurs automatically by TA
startup) no other restart is needed.

Of course, if you play with TabBarMan to alter or improve its
functionality, you have to restart TA or at least TA Lua (press Ctrl+E and
type "restart" to achieve that) after you modify the TabBarMan.lua.

Best regards,


> qwerky
> On 2019-07-04 02:43, Procházka Lukáš Ing. wrote:
>> Hello,
>> due to missing & often spoken absence of possibility to rearrange tabs
>> in tab bar I created a simple module which "somehow" provides such
>> base functionality.
>> Limitations:
>> - It doesn't preserve state of view, i.e. current line, cursor
>> position etc.
>> - It doesn't preserve bookmarks.
>> - It simply closes concerned buffers and reopens them [1] in a new
>> order - this is how tabs are reordered.
>> - Due to [1], concerned buffers are to be unmodified (just checked, no
>> action if they all are not saved so far).
>> - Just tested on my comp - here I'm having one buffer shown in just
>> one view.
>> - Report bugs on git or using my mail bellow.
>> You can download the module here:
>> Just put the module so TA loads it on startup; there are no deps.
>> The module lifetime depends on when/if TA will provide the
>> functionality by its core.
>> Best regards,
>> Lukas
>>>> I've given thought to this in the past. If there was an easy solution
>>>> that didn't feel like a hack and worked well, it would probably be
>>>> done by now. As it is, I don't have much motivation for this feature
>>>> because I personally do not use tabs. I use the buffer browser.
>>>> Cheers,
>>>> Mitchell
>>> Completely understand. However, since very nearly all other multi-file
>>> editors offer this, it is something that potential new users (like
>>> myself) will immediately notice. People don't like being made to
>>> change
>>> their habits. Just sayin'. :-)
>>> qwerky

Ing. Lukáš Procházka |
Pontex s. r. o.      | | |  
Bezová 1658
147 14 Praha 4
Mob.: +420 702 033 396

You are subscribed to
To change subscription settings, send an e-mail to
To unsubscribe, send an e-mail to
Received on Wed 10 Jul 2019 - 10:34:58 EDT

This archive was generated by hypermail 2.2.0 : Thu 11 Jul 2019 - 06:34:05 EDT