Skip to content

Instantly share code, notes, and snippets.

@dsamardzija
Forked from jbutko/reveal_in_side_bar.py
Created January 1, 2016 19:51
Show Gist options
  • Save dsamardzija/204dcabc77919284b5b0 to your computer and use it in GitHub Desktop.
Save dsamardzija/204dcabc77919284b5b0 to your computer and use it in GitHub Desktop.
#SublimeText #Sublime: Show file in sidebar automatically
# 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment