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.