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

Visual mode added #20

Merged
merged 9 commits into from
Aug 17, 2017
Merged

Visual mode added #20

merged 9 commits into from
Aug 17, 2017

Conversation

pwoosam
Copy link
Collaborator

@pwoosam pwoosam commented Dec 19, 2016

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.

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.
@ccordoba12 ccordoba12 added this to the v0.1 milestone Dec 19, 2016
@ccordoba12
Copy link
Member

Patrick, please wait until Camila adds tests for spyder-vim before merging this one, so you can add tests for visual mode too.

@andfoy
Copy link
Member

andfoy commented Aug 17, 2017

@ccordoba12 Can I merge this PR and then write those tests?

@ccordoba12
Copy link
Member

Sure.

@andfoy andfoy merged commit 0bfd56a into spyder-ide:master Aug 17, 2017
@liebsc21
Copy link

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.
spyder-ide/spyder#2112, but that is still not implemented/released.

@ccordoba12
Copy link
Member

There's no way to do that in Spyder at the moment.

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

Successfully merging this pull request may close these issues.

Visual mode
4 participants