-
-
Notifications
You must be signed in to change notification settings - Fork 76
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
Send text in Visual mode #20
Comments
Hi! Cheers, |
This commit (bb62179) actually implements Feel free to reopen the issue if something is not working. Cheers! |
Thanks a lot. I gave it a try but I encountered a small bug with multilines ipython and ptipython repl: when sending lines through visual, it is sending them multiple times depending on the number of lines sent . Here is an example code: print("Hello")
print("World") Sending these two lines via
on two lines as expected. Now sending via
Now adding
Are you getting the same behavior ? Thanks again for being so responsive, really appreciate it. |
Ugh.. I tested this commit from another branch I'm working, Cheers |
I've merged the If the problem persists, don't refrain from reopening this issue! Cheers! |
Thanks ! Unfortunately, it seems I'm unable update to the newer merge. Seems to be related to the zen submodule. Here is the error I get after the Encountered ModuleNotFoundError loading plugin at /home/user/.nvim/plugged/iron.nvim/rplugin/python3/iron: No module named 'zen'
Traceback (most recent call last):
File "/home/user/.local/lib/python3.6/site-packages/neovim/plugin/host.py", line 131, in _load
module = imp.load_module(name, file, pathname, descr)
File "/usr/lib/python3.6/imp.py", line 244, in load_module
return load_package(name, filename)
File "/usr/lib/python3.6/imp.py", line 216, in load_package
return _load(spec)
File "<frozen importlib._bootstrap>", line 675, in _load
File "<frozen importlib._bootstrap>", line 655, in _load_unlocked
ModuleNotFoundError: No module named 'zen' |
I'm sorry this has broken the update. It seems that it has not created the submodule. Apparently, removing and installing again does the right thing (for me, using If it still does not create the submodule, we're in serious trouble. Cheers |
:( outch, serious trouble it is... I'm also using vim-plug, I tried removing the iron.vim directory in the In the iron.vim directory, it seems the zen pluggin is there, pointing to |
I just found the bug. Please test to see if it works for you. Cheers |
Everything works like a charm, well done and thank you very much! |
No problem! I'm really glad it works now! Please keep on opening issues in case you find anything! |
For those coming from Google, the new way to send visual selection to the REPL is to use core.visual_send. Here is an example mapping:
|
Hey,
Quick suggestion/question: often, it's convenient to select some text in visual mode and send it to the REPL rather than typing a motion.
There is surely an easy mapping/implementation to do that but my knowledge in vim plugins is close to 0 (shame on me) and if it's fast for you, I would really appreciate a little help.
What I did that kinda work for my ipython repl is:
vmap s <ESC>`>a<space><ESC>ctr`<
but as you can see, this adds a space at the end of the selection before sending otherwise it was sending the selected text minus the last character for some reason.
As this "solution" is pretty clunky, would you have another suggestion or would it be possible to implement another mapping like the
ctr
but for visual mode ?Thanks a lot
The text was updated successfully, but these errors were encountered: