Virajsinh

Side Bar Show Opened File Automatic File Open For Sublime Text

Sep 14th, 2021 (edited)
396
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.27 KB | None | 0 0
  1. # Tools ==> Developer ==> New Plugin
  2.  
  3. import sublime, sublime_plugin
  4.  
  5. class OnActivatedListener(sublime_plugin.EventListener):
  6.     def on_activated (self, view):
  7.  
  8.         print ("opened" + view.file_name ())
  9.  
  10.         view.window ().run_command ("reveal_in_side_bar")
Add Comment
Please, Sign In to add comment