by neilsarkar on Tue Apr 24, 2012 1:45 pm
I just wrote a quick plugin to do this.
# $sublime_root/Packages/User/close_other_tabs.py
import sublime, sublime_plugin
class CloseOtherTabs(sublime_plugin.TextCommand):
def run(self, edit):
window = self.view.window()
group_index, view_index = window.get_view_index(self.view)
window.run_command("close_others_by_index", { "group": group_index, "index": view_index})
# keybindings
...
{
"keys": ["super+alt+w"],
"command": "close_other_tabs"
}