Skip to content

Instantly share code, notes, and snippets.

@malsup
Created April 23, 2012 03:58
Show Gist options
  • Save malsup/2468764 to your computer and use it in GitHub Desktop.
Save malsup/2468764 to your computer and use it in GitHub Desktop.
Additional functionality for Sublime Text "SortTabs" plugin
import sublime, sublime_plugin
# additional functionality for SortTabs plugin
# https://github.com/bizoo/SortTabs
# trigger SortTabs when a file is activated
class SortTabsListener(sublime_plugin.EventListener):
def on_activated(self, view):
w = view.window()
if w != None:
w.run_command('sort_tabs_by_name');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment