New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add CoffeeScript REPL support for tmux #13

Closed
wants to merge 4 commits into
base: master
from

Conversation

Projects
None yet
2 participants
@epeli
Contributor

epeli commented Apr 5, 2012

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:

jashkenas/coffeescript#1979

@jpalardy

This comment has been minimized.

Owner

jpalardy commented Apr 6, 2012

Interesting. I'm going to have to review this… and try to understand what it means from screen.

@jpalardy

This comment has been minimized.

Owner

jpalardy commented Apr 17, 2012

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?

@jpalardy jpalardy closed this in d0cea52 Apr 21, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment