ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Tab​Stack

by FichteFoll ST4

Alternative MRU tab switching for Sublime Text with a quick panel live preview

Details

Installs

  • Total 11
  • Win 6
  • Mac 1
  • Linux 4
Aug 11 Aug 10 Aug 9 Aug 8 Aug 7 Aug 6 Aug 5 Aug 4 Aug 3 Aug 2 Aug 1 Jul 31 Jul 30 Jul 29 Jul 28 Jul 27 Jul 26 Jul 25 Jul 24 Jul 23 Jul 22 Jul 21 Jul 20 Jul 19 Jul 18 Jul 17 Jul 16 Jul 15 Jul 14 Jul 13 Jul 12 Jul 11 Jul 10 Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28
Windows 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 3 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 2 0 1 0 0 0 0 0 0 0 0 1 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

TabStack

TabStack is a Sublime Text (build 4100+) package for switching between open tabs using an MRU-style stack. It keeps tab order per window and previews tabs in the quick panel before committing the switch. It also preserves tab ordering across sessions and supports multiple selections. When closing a tab, TabStack restores the previous selection.

Video Showcase

Installation

TabStack is available on Package Control. Open the Command Palette, select Package Control: Install Package and find “TabStack” in the list.

Usage

The key bindings are:

  • ctrl+tab
  • ctrl+shift+tab
  • ctrl+up
  • ctrl+down

These are not configurable because the release detection of the ctrl key is hard-coded.

Press one of those shortcuts to open the tab stack quick panel. Use the same keys to move through the list while it is open. Release ctrl to commit the selected tab. Press ctrl+escape to cancel.

Platform Support

TabStack supports Linux, Windows, and macOS. It polls the native key state APIs to detect modifier release events.

On Linux, detection uses the X11 key state API, so Sublime must run under X11 or XWayland (for example with GDK_BACKEND=x11). Note that this has not been reported to work yet.

A native Wayland session exposes no way to poll global key state (a deliberate security restriction in the protocol), and Sublime Text does not provide a key-release API to plugins. See also the related upstream issue.

Caveats

Support for sheets that are not backed by text, i.e. HTML sheets and image sheets, cannot properly be monitored before ST build 4205 due to missing API support.