Sublime Text package similar to NppExec?

0

Anybody know of a package for Sublime Text 2 that will let me execute a shell command, save shell commands, run the currently-open file?

I miss the utility of NppExec from Notepad++, in which I would save something like:

irb -r "$(FULL_CURRENT_PATH)"

...press F6, Enter, and I'd be rolling. With Sublime Text 2, I've got to get out a shell, navigate to the right directory, then enter the command.

JellicleCat

Posted 2012-02-06T20:33:03.673

Reputation: 1 721

Answers

1

You can use the build system to define whatever commands you want to be executed. Checkout the official documentation for more information on how to perform what you want.

Zenklys

Posted 2012-02-06T20:33:03.673

Reputation: 201

When I give it the "cmd": ["irb"], it tells me [Error 2] The system cannot find the file specified. I've read the documentation, but I see no help. I suppose it's not possible to get an interactive environment this way? – JellicleCat – 2012-06-05T21:58:31.060

That error means the same as if you typed "c:\SgtPooki\something\thisDOESNTexist\file.cs". Basically your command syntax is probably correct but you have the wrong file/filepath. – SgtPooki – 2012-12-16T22:16:35.303