Thanks for the code! But, how would I take this and bind it to a key? I placed the code in a Python file and put it in the Users/Packages directory. I also changed it to extend sublimeplugin.TextCommand instead of WindowCommand.
I added the following code in my bindings:
<binding key="ctrl+t" command="closeAllOtherTabs"/>
But still no dice...
Here is the entire package that I saved in User/Packages
import sublime, sublimeplugin
def run(self, window, args):
active_group = window.activeGroup()
curr_view_id = window.activeViewInGroup(active_group).id()
for v in window.viewsInGroup(active_group):
if v.id() == curr_view_id: continue