Ok, I have test.py in C:\Documents and Settings[user]\Application Data\Sublime Text\Packages\User.
Contents of this test.py are:
[code]import sublime, sublimeplugin
This simple plugin will add ‘Hello, World!’ to the end of the buffer when run.
To run it, save it within the User/ directory, then open the console (Ctrl+~),
and type: view.runCommand(‘sample’)
See http://www.sublimetext.com/docs/plugin-basics for more information
class Test1Command(sublimeplugin.TextCommand):
def run(self, view, args):
view.insert(view.size(), “Hello, World!\n”)[/code]
I type view.runCommand(‘Test1’) at console and nowt happens, not even an error message.
Things I’ve tried:
- deleting test.pyc and resaving test.py, which causes test.pyc to be recreated
- calling Test1Command other things
- view.runCommand(‘test1’) in case it’s case sensitive
- shouting, in case it can hear me
I really want to like Sublime but when the documentation says you can do something simple like this and it doesn’t work then there’s no way I’m paying for it. Or I’m stupid.
Assuming cleverer people help me to solve this, how do I use all the plugins in the subdirectories of C:\Documents and Settings[user]\Application Data\Sublime Text\Packages ?
Thank you in anticipation of helpful assistance.