-
-
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 missing window keys (<C-w><C-[hjklovq]>) #2600
Changes from 6 commits
d43ec80
e9c401a
4aaaa0c
c7dfa83
4e327ad
78a91b1
13de31c
1968b0f
6c4e2cb
65fea7b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -206,35 +206,40 @@ | |
"when": "editorTextFocus && vim.active && vim.use<C-]> && !inDebugRepl" | ||
}, | ||
{ | ||
"key": "ctrl+w h", | ||
"command": "extension.vim_navigateLeft", | ||
"when": "vim.use<C-w> && vim.active && !editorTextFocus" | ||
}, | ||
{ | ||
"key": "ctrl+w l", | ||
"command": "extension.vim_navigateRight", | ||
"when": "vim.use<C-w> && vim.active && !editorTextFocus" | ||
"key": "ctrl+h", | ||
"command": "extension.vim_navigateCtrlH", | ||
"when": "editorTextFocus && vim.active && vim.use<C-h> && !inDebugRepl" | ||
}, | ||
{ | ||
"key": "ctrl+w ctrl+w", | ||
"command": "extension.vim_navigateGroups", | ||
"when": "vim.use<C-w> && vim.active && !editorTextFocus" | ||
"key": "ctrl+l", | ||
"command": "extension.vim_navigateCtrlL", | ||
"when": "editorTextFocus && vim.active && vim.use<C-l> && !inDebugRepl" | ||
}, | ||
{ | ||
"key": "ctrl+w j", | ||
"command": "extension.vim_navigateDown", | ||
"when": "vim.use<C-w> && vim.active && !editorTextFocus" | ||
"key": "ctrl+j", | ||
"command": "extension.vim_navigateCtrlJ", | ||
"when": "editorTextFocus && vim.active && vim.use<C-j> && !inDebugRepl" | ||
}, | ||
{ | ||
"key": "ctrl+w k", | ||
"command": "extension.vim_navigateUp", | ||
"when": "vim.use<C-w> && vim.active && !editorTextFocus" | ||
"key": "ctrl+k", | ||
"command": "extension.vim_navigateCtrlK", | ||
"when": "editorTextFocus && vim.active && vim.use<C-k> && !inDebugRepl" | ||
}, | ||
{ | ||
"key": "ctrl+w", | ||
"command": "extension.vim_ctrl+w", | ||
"when": "editorTextFocus && vim.active && vim.use<C-w> && !inDebugRepl" | ||
}, | ||
{ | ||
"key": "ctrl+q", | ||
"command": "extension.vim_winCtrlQ", | ||
"when": "editorTextFocus && vim.active && vim.use<C-q> && !inDebugRepl" | ||
}, | ||
{ | ||
"key": "ctrl+v", | ||
"command": "extension.vim_winCtrlV", | ||
"when": "editorTextFocus && vim.active && vim.use<C-v> && !inDebugRepl" | ||
}, | ||
{ | ||
"key": "ctrl+c", | ||
"command": "extension.vim_ctrl+c", | ||
|
@@ -330,11 +335,6 @@ | |
"command": "list.collapse", | ||
"when": "listFocus && !inputFocus" | ||
}, | ||
{ | ||
"key": "g g", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I'm fairly certain we need this. When the explorer window is selected, pressing There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Oooops I'm sorry... entirely I didn't care the explorer window and the |
||
"command": "list.focusFirst", | ||
"when": "listFocus && !inputFocus" | ||
}, | ||
{ | ||
"key": "shift+G", | ||
"command": "list.focusLast", | ||
|
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.
We need this one.
g g
will directly call a vscode command so we need this here. mind putting it back?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.
After removing this,
gg
seems to work.I'm new to VSCode extension development and I'm not used to package.json and what should I write to
contributes.commands
. so please correct me if I'm wrong.But unlike other VSCode extensions, I guess it's enough to lists only one key sequences here to send to VSCodeVim's state machine.
The state machine processes keys one by one, and fire the command if key sequence is matched.