Vim icon indicating copy to clipboard operation
Vim copied to clipboard

cmd + D selection don't jump and scroll window to latest selected text

Open wangadong opened this issue 10 years ago • 6 comments

Please thumbs-up 👍 this issue if it personally affects you! You can do this by clicking on the emoji-face on the top right of this post. Issues with more thumbs-up will be prioritized.


What did you do?

Press cmd + d multiple times to select same words

What did you expect to happen?

When the word are not in current view, it should jump and scroll window to the view of the newly selected word.

What happened instead?

It flashed the view to the selected word but jump back to the original one.

Technical details:

  • VSCode Version: 1.6.0
  • VsCodeVim Version: 0.3.5
  • OS: macOS Sierra

wangadong avatar Oct 11 '16 05:10 wangadong

:+1:

prurph avatar May 11 '18 16:05 prurph

@rebornix I think we have the proper APIs to do this now, want to take a stab at it?

xconverge avatar Jul 19 '18 01:07 xconverge

I have the same problem, and this is the last reason I do not use vscode vim extension.

ik0r avatar Dec 11 '18 02:12 ik0r

Can anyone find the problem? I set "<D-d>": false in handleKeys, but it still flashed the view to the selected word but jump back to the original one

ik0r avatar Dec 19 '18 01:12 ik0r

I managed to track down the problem and patch it (#4725)

gergelyth avatar Apr 08 '20 12:04 gergelyth

This was fixed by @gergelyth in #4725. However it brings you back to your original cursor as soon as you do anything other than gb/<D-d>. Is this behavior desirable, or would it be better to keep the view focused on your last cursor?

J-Fields avatar May 18 '20 01:05 J-Fields