Open xxyxxyxyx1 opened 4 months ago
Hi @xxyxxyxyx1
Of all the REPLs out there, python is the one that caused the most problems. I would recommend trying different permutations until you can isolate the problem:
slime_bracketed_paste
versus notkitty
versus notLet me know what you find and we can iterate.
Thank you for the suggestions. Switching from slime_bracketed_paste
to slime_python_ipython
seems to solve this problem.
slime_python_ipython
is inferior in other ways:
For speed, it would be very nice to fix the bracketed paste mode, but this is a usable solution that doesn't require changing the python file itself.
In the case of python itself, what would it take to fix bracketed mode?
I am using kitty+neovim+ipython. When ISlimeParagraphSend to ipython, in most cases, the paragraph runs immediately in ipython. However, if the paragraph ends in an indented line followed by a comment, it does not work and I must manually press 'return' in the ipython interpreter.
Here are some examples to explain the problem. They are equivalent when the indented code is a
def()
, afor
, etc.After sending the above paragraph, the ipython interpreter looks like this until I press 'return':
Adding a
pass
(or any other non-comment, non-indented python line) between the indented line and the terminal comment prevents the problem:This is inconvenient for me because I use vim folds like
#{{{ ... #}}}
to organize files, so I often have a terminal#}}}
after a function definition.My relevant vimrc is:
Any idea where this problem comes from?