-
Notifications
You must be signed in to change notification settings - Fork 226
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
Feature request - Allow selection to be sent as single line #194
Comments
Hi there, By default, slime sends a block as a "chunk", not line by line. That behavior defaults on the ftplugin though. What kind of code and REPL are you using? |
We use "hack" (https://github.com/facebook/hhvm) at FB. When I attempt to send it to the repl it is currently sending line by line which is incompatible with what |
If you could show me a minimal example, I would try to reproduce and debug it myself. Specifically:
Thanks |
I'm not sure if this is actually the same issue that OP is describing, but I am seeing something like the following:
x = 1
y = 2 and when this gets sent to the Julia REPL, for example, each line is evaluated individually:
However, inside Julia's REPL, you can enter multi-line commands by typing |
Hi @avonmoll, Trimming the blank line(s) between code lines is something that could be done by the ftplugin. As for inserting Alt-Enter … that's trickier. Is Alt-Enter even a sequence that could be inserted in |
That's an interesting question that I don't know the answer to. I think that where this issue might matter is in cases like the following function multiplyBy2(x)
return 2*x
end Fortunately, in the case of Julia, the REPL knows to wait for an Side note: considering opening an issue requesting Julia support as I don't know if I am patient enough to figure out how to write the ftplugin part myself :) |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
What about |
Background
I really enjoy that when doing "" slime sends all the block lines one by one to the repl. But some repls require the block to be sent at once.
Poblem
Some repls do not support multine and require all commands to be inlined.
Proposal
Would be great if there was an option to send all the current selection inlined into a single line for repls that do not support multiline commands
The text was updated successfully, but these errors were encountered: