Sublime Forum

Running Ruby commands

#1

I’ve spoken with a few people that say the roadblock for them switching from TM and adopting ST2 is Python. More specifically, they’d like to write commands using Ruby like they do in TM. I know that the API in ST2 is very different from the sub-process model TM employs, and embedding Ruby in the core editor is (probably) out of the question, so my question is this: would it be possible to write a Python API wrapper that allowed for the execution of a Ruby (or and other interpreted language) script and have the results passed back into ST2?

0 Likes

#2

My plan is to make the plugin below shell-agnostic, so to speak. I don’t know when, though.

github.com/SublimeText/PowershellUtils

0 Likes

#3

Nice. Although I wonder if it’ll encourage community fragmentation? That is, if we start to have Ruby dependencies, then Windows users will have to jump through some hoops to get things running. Same problem if Bash is used.

0 Likes