hanschen / vim-ipython-cell

Seamlessly run Python code in IPython from Vim
GNU General Public License v3.0
331 stars 18 forks source link

Add command that will send line without execution #25

Closed gerazov closed 3 years ago

gerazov commented 3 years ago

Sending a line now to IPython also executes it immediately. It would be useful to be able to edit the line before running it.

hanschen commented 3 years ago

Are you thinking of any particular IPythonCell command? I don't quite see the use case, except for maybe IPythonCellExecuteCellVerbose, and am hesitant to add a flag to every command to support this feature.

gerazov commented 3 years ago

I was thinking of SlimeLineSend, so maybe it's more of a Slime thing - is it at all possible?

I wouldn't set a flag but rather have two commands - SlimeLineSend and SlimeLineExecute.

hanschen commented 3 years ago

Yeah that's more of a slime thing, so I'll close this issue.

There's a SlimeSend1 command to send a single line of text, and SlimeSend0 to send a line without a carriage return. You could try the latter (unfortunately it doesn't seem to be documented).