-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Cmd+D loses multiple selections #2325
Comments
UPDATE: It looks like I was mistaken about this being related to Ctrl-D, as Cmd+D seems to work intermittently (I can't figure out what triggers the bug). I've updated the issue title/description to reflect this. |
We changed the default behaviour of
Try setting the |
@jpoon as mentioned in my comment above, that doesn’t seem to fix the problem unfortunately - also it seems weird that the setting for Ctrl-D should have an effect on the Cmd-D behavior? |
me too. change the handleKeys setting not working. |
@rhys-vdw What are your config settings? Also, can you send me that file? I couldn't replicate on some basic tests. |
Not sure if this is related to this issue, but I think it's worth mentioning it: #2314 made
then Even worse, the following config:
still causes Luckily in linux I don't think there's a difference between "remap to " and "VS Code default behavior" so the following:
does restore the default behaviour (add selection to next find match) for me. Still I find it very weird that I need to configure it like that (and even more weird that my previous simple config |
Yes, when we were discussing that PR, we fucked up and chose the wrong default. However, at this point, we're stuck with it unless we want to break all the other people that have made their changes to their configs. For the
where undefined means, there's no setting for |
I just tested it on a clean installation, with only the vim extension installed, and reload between tries. All the following configurations:
map C-d to "move page half down". It's as if vscode sets an entry Lines 515 to 521 in 68e793f
means:
Only:
causes |
What you are seeing is VSCodeVim handling that. |
I think the conversation's getting a little sidetracked: the As far as I can tell, the two issues are totally unrelated, especially seeing as this occurs when running the |
@timkendrick I'm not convinced they're entirely unrelated. We had to add special handling for ctrl+d, so if they're not bound properly, that's probably the issue you're seeing. |
Ah ok, sorry – I was assuming that they were unrelated seeing as this bug also occurs when using the |
Hi. I've run into the same problem. |
My environment:
I've created the issue referenced above. 1.
|
Still running into the same problem with the latest version. This is so annoying that I even feel like I'm on the edge of giving up Vim mode... |
Yup, this one's still happening for me too. But the issue is still open so no reason to expect otherwise. |
I find ctrl+d for multiple selections in 0.10 is work. |
Does anyone have a functional fix for this? I'm on Windows! With
The behavior in (3) is the closest, but it breaks the normal VS Code edit flow: @jpoon You mentioned setting |
The one requirement for me to use any extension in vscode is that it doesn't fuck with ctrl+d. I use it so much. And I have just been over so many issues and still can't get it working.
But this doesn't help me, I need to be in insert mode and it doesn't work in insert mode. And going back to insert mode removes the selection as well. This is such a big issue that keeps getting posted over and over. Why not have a specific setting just for it that people can easily enable so they know what should happen. And then any reports of issues you know isn't configuration (which is still unclear) so you know when there are real issues. I can live withoug vim. I can't live without an effective ctrl+d :( What we all want seems to be the default behavior which you say is by setting undefined... which you can't do. |
in fact, even after remapping add selection to next find match to another key, say cmd+e, that same problem describe by @rhys-vdw 's gif still persists and this is on a clean install of vscode with only the vim plugin |
Try to use the trick instead before resolved:
|
…is probably caused by Vim/src/actions/commands/actions.ts Lines 4154 to 4198 in c0d1e9e
I traced back I saw that @Chillee posted this GIF, which seems pretty similar to the earlier GIF, and the above PR apparently fixed it. So this seems like a regression? |
@J-Fields I guess this one should also get the |
Is there a resolution for this? It seems as mentoined earlier, On the dev side, I'd imagine that changing "scroll halfway down" to ctrl+shift+d instead of ctrl+d would be a slight inconvenience to those who use that shortcut and a huge boon to everyone else, fixing the primary incompatibility of this plugin with VSCode. |
@Divide-By-0 you can just disable all the vim stuff via the keymaps window like any other shortcut (accessible through command palette). |
Is this a BUG REPORT or FEATURE REQUEST? (choose one): BUG REPORT
What happened: After a recent VSCodeVim update (since v0.10.12?), pressing Cmd+D sometimes loses multiple selections
What did you expect to happen: Selections should be maintained when using Cmd+D to select multiple occurrences
How to reproduce it (as minimally and precisely as possible):
viw
to select the current word in visual modec
to replace both selected occurrences).Environment: macOS
The text was updated successfully, but these errors were encountered: