Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

allow user to configure direction

  • Loading branch information...
commit 9ed26104443f92873b0b97786e69c6ac801455e4 1 parent a609a68
@robhurring authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 toggleview.py
View
4 toggleview.py
@@ -1,6 +1,6 @@
import sublime, sublime_plugin
class ToggleViewCommand(sublime_plugin.WindowCommand):
- def run(self):
- group_idx = (self.window.active_group() + 1) % self.window.num_groups()
+ def run(self, direction = 'next'):
+ group_idx = (self.window.active_group() + (1 if direction == 'next' else -1)) % self.window.num_groups()
self.window.focus_group(group_idx)

0 comments on commit 9ed2610

Please sign in to comment.
Something went wrong with that request. Please try again.