Skip to content

Instantly share code, notes, and snippets.

@StlTenny
Last active December 11, 2015 08:48
Show Gist options
  • Save StlTenny/4575461 to your computer and use it in GitHub Desktop.
Save StlTenny/4575461 to your computer and use it in GitHub Desktop.
import sublime_plugin
class NextGroup(sublime_plugin.WindowCommand):
def run(self):
numGroups = self.window.num_groups()
currentGroup = self.window.active_group()
if currentGroup < numGroups - 1:
newGroup = currentGroup + 1
else:
newGroup = 0
self.window.focus_group(newGroup)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment