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?

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?
Posts: 208
Joined: Tue Dec 20, 2011 4:58 pm

Return to Technical Support

Who is online

Users browsing this forum: No registered users and 12 guests