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

Unwanted selections don't switch to Visual Mode #3096

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

nosami
Copy link
Collaborator

@nosami nosami commented Mar 10, 2024

I'm not sure if this behavior is ever desirable, but created this PR anyway so that we can discuss. Maybe there is some scenario that I haven't considered.

I don't see any downsides from doing this. Visual mode still works via key input and mouse selections. We just don't automatically switch to Visual Mode when Visual Studio decides that it wants to select some text for us by itself.

Fixes #2966

I'm not sure if this behavior is ever desirable, but created this
PR anyway so that we can discuss.

I don't see any downsides from doing this. Visual mode works from
key input and mouse selections. We just don't automatically switch
to Visual Mode when Visual Studio decides that it wants to select some
text for us by itself.

Fixes #2966
@nosami nosami requested a review from jaredpar March 10, 2024 21:07
if isSelectModeMouse then
Some ModeKind.SelectCharacter
else
None
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is the main change, the rest is mostly noise

@nosami
Copy link
Collaborator Author

nosami commented Mar 11, 2024

Lots of tests failing but waiting for feedback before I look at those.

@nosami
Copy link
Collaborator Author

nosami commented Mar 12, 2024

So, there is a problem with this PR that needs resolving. Creating a selection with the keyboard without explicitly going into Visual Mode now no longer automatically switches to VisualCharacter mode (e.g pressing shift+down, shift + right etc)

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.

Ctrl-F12 (GoToImplementation) puts VsVim into visual mode
2 participants