Home Download Buy Blog Forum Support

Do command on opening .md file

Do command on opening .md file

Postby tdskate on Thu Aug 02, 2012 4:39 pm

I'm using this fantastic Markdown Preview package.


Now, is it possible, after opening a .md file, to make Sublime Text throw up a dialog box asking if I want to preview current .md file in my browser?

Thanksss
tdskate
 
Posts: 6
Joined: Fri Jul 13, 2012 5:46 pm

Re: Do command on opening .md file

Postby phillip.koebbe on Fri Aug 03, 2012 2:16 pm

You could probably do that in a plugin. Take a look at the on_load event:

http://www.sublimetext.com/docs/2/api_r ... ntListener
-- Phillip

Code: Select all
while self.living? do
    mistake = Mistake.new
    self.learn_from!(mistake) unless mistake.fatal?
end
phillip.koebbe
 
Posts: 208
Joined: Tue Dec 20, 2011 4:58 pm


Return to Technical Support

Who is online

Users browsing this forum: Exabot [Bot], Google [Bot] and 28 guests