-
-
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
Add support for ctrl+w in insert mode #453
Conversation
@@ -357,7 +357,22 @@ class CommandEsc extends BaseCommand { | |||
|
|||
@RegisterAction | |||
class CommandCtrlOpenBracket extends CommandEsc { | |||
keys = ["ctrl+["] | |||
keys = ["ctrl+["]; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Unrelated, but necessary to get gulp tslint
passing locally.
Note: I see that for some other control- commands, there are references in "command": "extension.vim_ctrl+b", I don't fully understand what these do. I tested this change interactively in the debug editor, so I know it works, I guess these give people some knobs to twiddle? Or maybe this only happens to work because |
Here is the thing, we are listening to vscode's So in our case, we translate |
Makes sense. I'm a little confused by https://github.com/VSCodeVim/Vim/blob/master/extension.ts#L102
Which appears to register the various control keys, but notably |
@sectioneight good catch man. Just move |
@sectioneight miss an important link in previous comments, take a look at VS Code key binding doc then you can have an idea which keys will be passed to |
Thanks for the pointers! Can you take a look at the most recent diff? I think we're on the same page (making ctrl+w look like the rest of the ctrl+* keys). |
LGTM 💯 |
One last thing, would you mind resolving the conflicts with |
@jpoon yup, updated, I think we both fixed the tslint error in different branches :) |
This deletes backwards, and is for some reason one of my most commonly used keyboard shortcuts.
@sectioneight 🎉 |
Dope. Really happy with how easy it is to implement features. Looking
|
This deletes backwards, and is for some reason one of my most commonly
used keyboard shortcuts.
Fixes #452