Skip to content
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

Execute selection and then move cursor to next line of selection #25

Open
zippeurfou opened this issue Sep 26, 2018 · 5 comments
Open

Comments

@zippeurfou
Copy link

It would be nice to have an alternative to CTRL + C that goes to the next line of the selection.

@julienr
Copy link
Owner

julienr commented Sep 28, 2018

Thanks for the suggestion !

So you would like to run a selection line by line ? Ctrl-C currently runs the whole selection (doesn't it ?), so you can't really go to the next line of selection after that.

Or did I misunderstand something ?

@zippeurfou
Copy link
Author

I would like to run current selection and then go to the next line (down) instead of going back to the beginning of the selection as it currently dows. The same way nvim-R does \d
https://github.com/jalvesaq/Nvim-R/blob/master/doc/Nvim-R.txt#L382
Current behavior https://cl.ly/b23166eabab6
And what behavior I'd like (example using R): https://cl.ly/367b972d2b35
The behavior is different as after executing the selection it goes to the next line. Let me know if this is not clear enough.

@julienr
Copy link
Owner

julienr commented Oct 17, 2018

Ah ok, make sense ! Then yes, I agree it would be a nice addition. I can't promise anything because I'm quite busy currently, but if you feel like doing a PR, please go ahead :)

@zippeurfou
Copy link
Author

Thanks @julienr, I wonder if we could just do a shortcut somehow that invoke CTRL-C as a quick hack at least.

@julienr
Copy link
Owner

julienr commented Oct 19, 2018

Yeah I guess it would be a matter of writing another function that calls RunTmuxPythonChunk and then goes to the next line. I'm actually pretty bad at vimscript, so I don't even know how to go to the next line, but something like simulating a j should do.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants