Home Download Buy Blog Forum Support

sublime command from python plug-in

sublime command from python plug-in

Postby vim on Mon Oct 19, 2009 8:38 pm

can i run sublime command from python plug-in?
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: sublime command from python plug-in

Postby jps on Mon Oct 19, 2009 8:55 pm

I'm not quite sure what you mean... are you asking if sublime.runCommand() can be called from within a plugin inheriting from TextCommand?
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: sublime command from python plug-in

Postby vim on Mon Oct 19, 2009 9:19 pm

just tried to run the command findAllUnder and couldn't...
Code: Select all
>>> sublime.runCommand('findAllUnder')
>>> view.runCommand('findAllUnder')


nothing...
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: sublime command from python plug-in

Postby jps on Mon Oct 19, 2009 9:24 pm

Code: Select all
window.runCommand('findAllUnder')


It's just hiding from you :)
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: sublime command from python plug-in

Postby vim on Mon Oct 19, 2009 9:35 pm

got it thanks
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 34 guests