guillermooo wrote:The old docs are still valid to a great extent, but new ones are badly needed.
Almost three years later now, and the old (Sublime 1) documents are still prominently featured on http://www.sublimetext.com/docs/plugin-examples
I'm fairly new to Sublime, though I've been programming for decades. I have ended up wasting a couple days
worth of my time, trying to figure out why I could not make any extensions work, even these simplest examples.
There is better Sublime 2 plugin documentation at http://net.tutsplus.com/tutorials/pytho ... -2-plugin/
Is there --any-- way that we could get the http://www.sublimetext.com/docs/plugin-examples
page to mention http://net.tutsplus.com/tutorials/python-tutorials/how-to-create-a-sublime-text-2-plugin/
or mention this present thread or mention that those examples are applicable only to Sublime 1 or -- something -- to give the poor saps who get lost trying to follow those plugin-examples a bit of a clue?
(I realize that you are almost certainly not the one to ask this question of ... but I don't know who is ... perhaps I'll get lucky and someone will offer a clue as to who might be.)
Here are the two fixes I found were needed in http://www.sublimetext.com/docs/plugin-examples
- Wrong sublimeplugin.TextCommand
- Wrong view.runCommand('hello')
With these two fixes, the HelloCommand runs as 'hello' in both sublime 2 and 3, using the command:
- Code: Select all
in the console (accessible via Ctrl+~).
Someone must have edit access to that http://www.sublimetext.com/docs/plugin-examples