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

VS keybindings extension overrides word navigation with column selection on OSX #35412

Closed
adison opened this issue Sep 30, 2017 · 7 comments
Closed
Assignees
Labels
*caused-by-extension Issue identified to be caused by an extension
Milestone

Comments

@adison
Copy link

adison commented Sep 30, 2017

  • VSCode Version: Code 1.16.1 (27492b6, 2017-09-14T16:24:39.530Z)
  • OS Version: Darwin x64 16.7.0
  • Extensions:
Extension Author (truncated) Version
markdown-toc Ala 1.5.6
vsc-rustfmt Con 0.1.0
swift Kas 0.0.3
githistory don 0.2.3
python don 0.7.0
unicode-normalizer esp 0.0.1
vscode-auto-open-markdown-preview hnw 0.0.4
Lua key 0.0.9
Go luk 0.6.65
MagicPython mag 1.0.12
prettify-json moh 0.0.3
cpptools ms- 0.13.0
csharp ms- 1.12.1
vs-keybindings ms- 0.1.7
debugger-for-chrome msj 3.3.1
Ruby reb 0.15.0
RustyCode sav 0.19.1
guides spy 0.8.4
code-spell-checker str 1.4.0
vscode-react-native vsm 0.4.2
markdown-pdf yza 0.1.7

Steps to Reproduce:

  1. use alt + arrow key(left/right) to jump word by word
  2. use shift to select anything(word or letter) and try alt + arrow(right/left) again, it can only move letter by letter.

Reproduces without extensions: Yes

Without this feature, it's hard to delete multiple words efficiently.

@alexdima
Copy link
Member

alexdima commented Oct 2, 2017

@adison I cannot reproduce, word navigation works as expected for me.

Please check:

  • extensions can redefine keybindings. Are the alt+arrow keys still bound to word navigation? (you can disable extensions or search for "alt+leftarrow" in the keybindings UI at cmd+k cmd+s)
  • Have you customized editor.wordSeparators

@alexdima alexdima added the info-needed Issue requires more information from poster label Oct 2, 2017
@alexdima alexdima added this to the Backlog milestone Oct 2, 2017
@adison
Copy link
Author

adison commented Oct 2, 2017

I have disabled all extensions before make this clip, what I mentioned is below, while using alt+shift+left/right, it move letter by letter.
http://www.giphy.com/gifs/xT9IgxgK5tQmbIFLzO

No idea if I made changes to editor.wordSeparators, I think no though, and it is "editor.wordSeparators": "`~!@#$%^&*()-=+[{]}\\|;:'\",.<>/?",

@alexdima
Copy link
Member

alexdima commented Oct 2, 2017

@adison Can you please check your keybindings for shift+alt+right:

  • open the keybindings UI: cmd+k cmd+s
  • search for shift+alt+right

Check that it is bound only to this command:
image

@adison
Copy link
Author

adison commented Oct 2, 2017

There are two items..
What should I do? and it seems a default binding, isn't it?
2017-10-02 15 58 01

@adison
Copy link
Author

adison commented Oct 2, 2017

@alexandrudima Hi, I just map the cursorColumnSelectRight to control+shift+right, and so on cursorColumnSelectLeft, it works fine now.
And I would suggest put this setting to default setting, I have no idea what is cursorColumnSelectLeft yet, but I do need select and move by word by alt+shift+left/right, just as other application, kind of sublime text and many others.

I will leave this for you to close or what you want, sort of leaving it to remind those came with same problem.
Thanks for your help.

@alexdima
Copy link
Member

alexdima commented Oct 2, 2017

@adison based on your screenshot, it appears an extension defines alt+shift+left/right to be column selection instead of word selection.

Specifically, I believe the vs-keybindings would do that.

In your initial report, you have the following incorrect statement:

Reproduces without extensions: Yes

@alexdima alexdima assigned rebornix and unassigned alexdima Oct 2, 2017
@alexdima alexdima changed the title After selecting words, alt+arrow key cann't jump by word but by letter VS keybindings extension overrides word navigation with column selection on OSX Oct 2, 2017
@alexdima alexdima removed the info-needed Issue requires more information from poster label Oct 2, 2017
@rebornix rebornix added the *caused-by-extension Issue identified to be caused by an extension label Nov 16, 2017
@rebornix
Copy link
Member

This issue was moved to rebornix/vscode-vs-keybindings#25

@vscodebot vscodebot bot locked and limited conversation to collaborators Jan 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*caused-by-extension Issue identified to be caused by an extension
Projects
None yet
Development

No branches or pull requests

3 participants