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

Ctrl-C should copy to clipboard in visual mode - fix for #1896 #1912

Merged
merged 11 commits into from
Jul 17, 2017

Conversation

philipmat
Copy link
Contributor

When yanking to clipboard, the selection should also reset to normal

Philip Mateescu added 2 commits July 9, 2017 00:51
When yanking to clipboard, the selection should also reset to normal
@philipmat
Copy link
Contributor Author

I'll look into the failing tests shortly.

@Chillee
Copy link
Member

Chillee commented Jul 9, 2017

You might already know this (I didn't know this when I first started contributing), but you can run only a select few tests using newTestOnly.

If you have any questions about anything, feel free to drop by our slack :)

@Chillee
Copy link
Member

Chillee commented Jul 13, 2017

Ah I've been wondering what that failing test was caused by (which was why I wasn't merging). It's caused by an upstream change (more specifically, this PR: microsoft/vscode#28238).

I'm fine with merging this and then fixing that upstream change (eventually).

@philipmat
Copy link
Contributor Author

Submitted PR #1926 to fix the tests.
Hopefully, if that passes and gets merged to master before all these other PRs, it should fix them too.

@Chillee Chillee merged commit c0e5441 into VSCodeVim:master Jul 17, 2017
@ferrao
Copy link

ferrao commented Nov 14, 2017

@philipmat Why do you say that When yanking to clipboard, the selection should also reset to normal?

All other IDEs that I use do not clear the visual selection mode when I press CTRL-C.
This behaviour is actually very annoying to me and gets in the way of my workflow.
Is there any option to control this?

@ferrao
Copy link

ferrao commented Nov 14, 2017

@philipmat Just found that vim.overrideCopy: false does the trick! I'm happy now!

@philipmat
Copy link
Contributor Author

@ferrao - in Vim itself - i.e. canon, if you select text and yank it (by either y or Ctrl-C) the mode switches back to Normal from Visual (or Select).

@ferrao
Copy link

ferrao commented Nov 15, 2017

@philipmat Sorry I meant Cmd-C and not Ctrl-C. I am actually on a Mac and Cmd-C/Cmd-v does nothing on Vim, allowing me to have two different ways of copying and pasting text around.

With vim.overrideCopy: true I loose that. But I am happy to have this option, It allows me tu use visual select, then Cmd-C to copy, then do something to the visual selection with vim and paste the original copy somewhere else with Cmd-V.

I guess I could do the same with registers, but old habits die hard...

@philipmat philipmat deleted the copy_in_visual_mode branch November 23, 2017 21:52
This pull request was closed.
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.

3 participants