-
Notifications
You must be signed in to change notification settings - Fork 229
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
Use tmux bracketed paste #265
Conversation
hi @carlocab I've been running this patch (manually) for a few weeks now, I don't see bad side-effects. Let's merge it for now, and see what comes up. |
Great! If it helps allay any worries you have, tmux is soon making bracketed-paste the default behaviour for https://github.com/tmux/tmux/blob/9a5b2c93a7129a6e6e74e4b6d4c2c78dd568b8d4/CHANGES#L13 |
I don't quite understand why, but this change broke my usual workflow. Within a tmux session inside of an ubuntu20.04 docker container, I send commands from vim to ipython. With the latest commit ( When I manually deleted the two dashes causing the syntax error and then press Enter to issue the commands, the ipython terminal just hangs forever. With an older commit ( It seems like with this update that the |
@kdauria Ugh, sorry about that. What happens if you remove I don't use IPython much, but from my (admittedly limited, and possibly mistaken) understanding is that |
Thanks @carlocab . I'll try fiddling around with this line: vim-slime/ftplugin/python/slime.vim Line 8 in 92421f0
|
Yes, I think that should do it! I think you'll want to keep the If you have a code snippet with indentation I could play with to see what works, please do share it so I can try to test it out too. |
Ok, now that I think about it playing around with that line will probably affect users who aren't using tmux. It might be better to just deactivate bracketed paste if |
@carlocab I gave it a try. https://github.com/kdauria/vim-slime/pull/1 I'm stuck on how to send a carriage return in ipython in order to "submit" the commands. I tried adding in my vim config, but that didn't work.
FWIW, I really like the bracketed paste. It seems to be less buggy and also allows ipython to do syntax highlighting. |
Yea, I got stuck on the same thing. I tried looking up how to get IPython to read a character as a carriage return, but no luck. |
A potential, but possibly ugly, solution would be for However, I don't know what |
reverted 10e8c2b |
…x as an option.
* A trade-off for #265, allowing to have bracketed-paste in tmux as an option. * Introduce g:slime_bracketed_paste rather than using the config dict. Co-authored-by: Hugo Levy-Falk <hugo@klafyvel.me>
Fixes #262, KristofferC/OhMyREPL.jl#224, #194 (comment)
Related to #254
I tried looking for terminal applications that don't support bracketed paste #254 (comment) but haven't managed to find any. Playing around a little bit with it Python hasn't revealed any problems either.