# Plugin to show active file in left sidebar
# Create a new Plugin: Menu Tools->New pluguin and save this:
import sublime, sublime_plugin
class SideBarListener(sublime_plugin.EventListener):
def on_activated(self, view):
view.window().run_command('reveal_in_side_bar')
# The folder where to save this is selected by default, and extension (.py) also is added by default.
# On windows, the folder is C:\Users\username\AppData\Roaming\Sublime Text 2\Packages\User
# From http://stackoverflow.com/questions/9241845/sublime-text-2-link-with-editor-show-file-in-sidebar