Home Download Buy Blog Forum Support

Need some help writing a plugin

Re: Need some help writing a plugin

Postby phillip.koebbe on Sat Mar 31, 2012 3:03 am

As you have noticed, initialization and execution are not the same. How is your keybinding defined? I noticed that your class name is IsoTeXCommand, and given the relationship of class names to commands, you'd need to use the command "iso_te_x". ST2 uses capitalization as a "marker" for underscores. For example, in the code I posted, the class name was MfrReplaceCommand which executed via the "mfr_replace" command.
-- 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 Plugin Development

Who is online

Users browsing this forum: No registered users and 5 guests