-
-
Notifications
You must be signed in to change notification settings - Fork 27
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
Visual mode added #20
Conversation
Visual mode is now implemented with commands h, j, k, l, w, G, and y. Nothing for visual block mode has been added yet, just line and char.
Command j was off by one, causing the first selected line to be unselected and then reselected everytime there was a blank line. Also fixes visual line selection from inverting selection when at the end of dcument.
Command k would unselect and reselect the first line when at the first line. Command G did not move selection when attached to a number prefix. Command gg did not have visual mode implemented.
Patrick, please wait until Camila adds tests for spyder-vim before merging this one, so you can add tests for visual mode too. |
@ccordoba12 Can I merge this PR and then write those tests? |
Sure. |
Is it feasible to implement block selection (ctrl + v) in the visual mode? Or alternatively: Do you know of a way to modify a text block, which is not necessarily assosiated with the vim plugin? I found e.g. |
There's no way to do that in Spyder at the moment. |
Fixes #4
Added visual mode.
So far v and V work, so text can be selected by character or line.
ctrl + v has not been added, so block selection is not available.
Commands h, j, k, l, w, G, and y added to visual mode.
Note:
This PR is based off of #16 since most of visual mode's features are related to yanking text and pasting and the selection types must be tracked.