Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Add CoffeeScript REPL support for tmux #13
The CoffeeScript REPL uses special key binding for multi-line input (Ctrl-v). So we need to enter this mode before we can send code to the CoffeeScript REPL. That's why I added hooks which can be executed before slime sends the code.
I don't use GNU screen so I don't know how to implement this for it, but I added the hooks for it too.
Also note that multi-line REPL support is only in master branch of CoffeeScript, but I think it's coming with next release, 1.2.1. See:
Went through the code. This is useful stuff.
However, I'm not sure why the "prefix" and "postfix" couldn't be concatenated to the string as it is done in the Python and Scala ftplugin. Ctrl-v and ctrl-d could probably be piped with the rest -- at least in the tmux version. I'm aware there are issues on the screen side of this.
Can you try again on another branch?