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
Change side in diff mode #3979
Comments
Seems like an upstream problem to me. |
Thank you very much for you help. I've filed an issue to VSCode. |
And it already got closed 😢 |
The necessary command |
Until this is resolved in VSCodeVim, the following keybinding is a simple workaround {
"key": "ctrl+w ctrl+w",
"command": "workbench.action.compareEditor.focusOtherSide",
"when": "textCompareEditorActive"
} This keeps |
Adding on to @dcervenkov s suggestion, here's a few more custom keybindings I suggest to get the experience closer to regular vim: #4942 (comment) Edit: It appears that the mapping by @dcervenkov prevents vim from picking up other Ctrl-W bindings while in the compare editor 😢 |
|
I solved the problem for myself by adding next snippet to settings.json: "vim.normalModeKeyBindingsNonRecursive": [
{
"before": [ "<C-w>", "h" ],
"commands": [{
"command": "workbench.action.compareEditor.focusSecondarySide"
}]
},
{
"before": [ "<C-w>", "l" ],
"commands": [{
"command": "workbench.action.compareEditor.focusPrimarySide"
}]
}
] It enable |
That ought to break the |
I'm not really sure that it's a bug or a non-existent feature yet, but in diff mode by default when I'm focusing the window the editor focuses on the right side of it (the current version of the file) and I thought that would be reasonable to change side by ctrl+ww, but unfortunately it's not working.
However, If I change the focus by clicking (😢) to the left side of the window (to the previous version of the file) then by the same action (ctrl+ww) works fine and does change the focus the the right side.
Extension (VsCodeVim) version: 1.9.0
VSCode version: 1.37
OS: Windows 10 1809
The text was updated successfully, but these errors were encountered: