Event: ActivateLeftTabOnClose (switch to left instead of previously used tab)

ActivateLeftTabOnClose
A script add-in that after closing a tab, activates the tab to the left instead of the tab that was previously used.

Why:
This add-in derived from How to close current and select left tab? and received some unreleased fixes in the meantime. I actually never needed that "ActivateLeft" feature for myself, but as the add-in worked so smooth, I somehow left it untouched and running for several months, which made me think that it's worth an upload.

Fancy features:
none.. o)

Installation:
To install the add-in, download the *.js.txt file below and drag it to Preferences / Toolbars / Scripts.

cya,
tbone

Download:

1 Like

I modified tbone's script a bit to perform ActivateRightTabOnClose instead, for those who prefer having the right adjacent tab focused upon closing a tab instead the most recent (default) or the left adjacent tab.
Event.GUI_ActivateRightTabOnClose.js.txt (8.4 KB)

Prevent closing locked tabs.
Event.GUI_ActivateLeftTabOnClose.js.txt (7.8 KB)