Home Download Buy Blog Forum Support

How to execute a command in from the command line?

How to execute a command in from the command line?

Postby bastibe on Thu Feb 02, 2012 1:43 pm

I want to use Sublime Text as an external editor for a different program.

For that to happen, I need to be able to advise Sublime Text to search for a string, or something like that. This seems to be possible using the command line utility and the switch

Code: Select all
subl --command

For example, I tried

Code: Select all
subl --command "sublime.error_message(\"this is an error sent from the command line\")"

The sublime console (C-`) replies to this with

Code: Select all
Unable to parse command: sublime.error_message("this is cool")

However, typing this very same command in the console itself works just fine.

So, how can I run a command like that from the command line?
bastibe
 
Posts: 1
Joined: Thu Feb 02, 2012 1:34 pm

Return to Technical Support

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 29 guests