-
-
Save dsamardzija/204dcabc77919284b5b0 to your computer and use it in GitHub Desktop.
#SublimeText #Sublime: Show file in sidebar automatically
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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