File tree 4 files changed +26
-12
lines changed
4 files changed +26
-12
lines changed Original file line number Diff line number Diff line change 9
9
- Supports Emacs region select keybindings (includes column region)
10
10
- Since Vim insert mode and mlti-cursors are incompatible, Vim disabled when column region mode.
11
11
- Respect the default keybindings of VSCode
12
- - Using system clipboard
13
12
14
13
## Related extensions
15
14
@@ -90,13 +89,13 @@ Blank type means it is not original keymap.
90
89
| ctrl+x k | - | Emacs | ` workbench.action.closeActiveEditor ` |
91
90
| ctrl+x ctrl-c | - | Emacs | ` workbench.action.closeAllEditors ` |
92
91
| ctrl+x ctrl+n | - | - | ` workbench.action.newWindow ` |
92
+ | ctrl+x n | - | - | ` workbench.action.files.newUntitledFile ` |
93
93
| ctrl+x 1 | - | Emacs | ` workbench.action.closeEditorsInOtherGroups ` |
94
94
| ctrl+x 2 | - | Emacs | ` workbench.action.splitEditor ` |
95
95
| ctrl+x 3 | - | Emacs | ` workbench.action.toggleEditorGroupLayout ` |
96
96
| ctrl+x o | - | Emacs | ` workbench.action.navigateEditorGroups ` |
97
97
| ctrl+x shift+] | - | Emacs | ` workbench.action.increaseViewSize ` |
98
98
| ctrl+x shift+[ | - | Emacs | ` workbench.action.decreaseViewSize ` |
99
- | ctrl+x n | - | - | ` workbench.action.files.newUntitledFile ` |
100
99
| ctrl+x h | - | Emacs | ` editor.action.selectAll ` |
101
100
| ctrl+x u | - | Emacs | ` undo ` |
102
101
| ctrl+x r | - | - | ` redo ` |
Original file line number Diff line number Diff line change 2
2
"name" : " vimacs" ,
3
3
"displayName" : " Vimacs" ,
4
4
"description" : " Provides Emacs keybindings for VSCodeVim" ,
5
- "version" : " 1.0.1 " ,
5
+ "version" : " 1.0.2 " ,
6
6
"publisher" : " migrs" ,
7
7
"engines" : {
8
8
"vscode" : " ^1.0.0"
11
11
"type" : " git" ,
12
12
"url" : " https://github.com/migrs/vscode-vimacs"
13
13
},
14
+ "keywords" : [
15
+ " vim" ,
16
+ " emacs" ,
17
+ " keymaps" ,
18
+ " keybindings"
19
+ ],
14
20
"categories" : [
15
- " Keymaps" ,
16
21
" Extension Packs"
17
22
],
18
23
"icon" : " images/icon.png" ,
74
79
{
75
80
"key" : " ctrl+x ctrl+x" ,
76
81
"command" : " extension.vim_ctrl+x" ,
77
- "when" : " editorTextFocus && mode != 'Insert' && vim.mode != 'Replace'"
82
+ "when" : " editorTextFocus && vim.active && vim. mode != 'Insert' && vim.mode != 'Replace'"
78
83
},
79
84
{
80
85
"key" : " ctrl+shift+2" ,
912
917
"command" : " workbench.action.quickOpenNavigateNext" ,
913
918
"when" : " inQuickOpen"
914
919
},
920
+ {
921
+ "key" : " ctrl+p" ,
922
+ "command" : " workbench.action.quickOpenNavigatePrevious" ,
923
+ "when" : " !editorFocus && !inQuickOpen"
924
+ }, {
925
+ "key" : " ctrl+n" ,
926
+ "command" : " workbench.action.quickOpenNavigateNext" ,
927
+ "when" : " !editorFocus && !inQuickOpen"
928
+ },
915
929
{
916
930
"key" : " ctrl+g" ,
917
931
"command" : " closeFindWidget" ,
Original file line number Diff line number Diff line change @@ -37,13 +37,6 @@ export function activate(context: vscode.ExtensionContext) {
37
37
vscode . commands . executeCommand ( deletionAction ) . then ( exitRegionMode ) ;
38
38
} ) ) ;
39
39
} ) ;
40
-
41
- const disableVimActions : string [ ] = [ "action.insertLineBefore" , "action.insertLineAfter" ] ;
42
- disableVimActions . forEach ( ( insertLineAction ) => {
43
- context . subscriptions . push ( vscode . commands . registerCommand ( "emacs." + insertLineAction , ( ) => {
44
- vscode . commands . executeCommand ( "editor." + insertLineAction ) . then ( exitRegionMode ) . then ( vim . disableVim ) ;
45
- } ) ) ;
46
- } ) ;
47
40
}
48
41
49
42
async function startRegionMode ( ) {
Original file line number Diff line number Diff line change 1
1
'use strict' ;
2
2
3
3
import * as vscode from 'vscode' ;
4
+ import * as vim from './vim'
4
5
5
6
export function activate ( context : vscode . ExtensionContext ) {
6
7
context . subscriptions . push ( vscode . commands . registerCommand ( 'emacs.cutAllRight' , cutAllRight ) ) ;
7
8
context . subscriptions . push ( vscode . commands . registerCommand ( 'emacs.scrollLineToCenter' , scrollLineToCenter ) ) ;
9
+
10
+ const insertLineActions : string [ ] = [ "action.insertLineBefore" , "action.insertLineAfter" ] ;
11
+ insertLineActions . forEach ( ( insertLineAction ) => {
12
+ context . subscriptions . push ( vscode . commands . registerCommand ( "emacs." + insertLineAction , ( ) => {
13
+ vscode . commands . executeCommand ( "editor." + insertLineAction ) . then ( vim . disableVim ) ;
14
+ } ) ) ;
15
+ } ) ;
8
16
}
9
17
10
18
async function cutAllRight ( ) {
You can’t perform that action at this time.
0 commit comments