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

fix: <C-d> remapping disabled by default. functionality controlled by "handleKeys" #2269

Merged
merged 4 commits into from Jan 13, 2018
Merged

Conversation

ghost
Copy link

@ghost ghost commented Jan 6, 2018

What this PR does / why we need it:
This PR make <C-d> disabled by default, unless users explicitly defined <C-d>:true in handleKeys.

handleKeys config trumps usectrlkeys conifg

This configuration

"vim.useCtrlKeys": false,
"vim.handleKeys": {
    "<C-d>": true
}

It should have <C-d> working as Vim move page half down, now it behaviors as add selection to next find match.

This PR modified this line, eventually results in this logic:

useCtrlKeys = true useCtrlKeys = false
handleKeys = true VSCodeVim move page half down VSCodeVim move page half down
handleKeys = false remap to <D-d> remap to <D-d>
undefined VS Code default behavior VS Code default behavior

Which issue(s) this PR fixes
#2162

Special notes for your reviewer:
<D-d> perform as VS Code default behavior, which is add selection to next find match.

@jpoon
Copy link
Member

jpoon commented Jan 6, 2018

As mentioned in the #2162, I think we should delete the key entirely. Actually, nvm. I don't think I fully grok what is for.

Your proposed fix also does not fix windows/linux.

@ghost
Copy link
Author

ghost commented Jan 6, 2018

This "fix" is for windows/linux, well, if that remapping line is for mac, which I assumed, not sure what it does originally.

@jpoon
Copy link
Member

jpoon commented Jan 6, 2018

This is the original PR adding the change. #1631

@ghost
Copy link
Author

ghost commented Jan 6, 2018

So after reexamined those issues you mentioned.
It's far more complicated than I thought... not even a configuration thing, that line is a hack.

How about

    if (key === '<C-d>') {
      let useKeyCtrlD = Configuration.handleKeys['<C-d>'];
      if (useKeyCtrlD !== undefined) {
        if (!useKeyCtrlD) {
          key = '<D-d>';
        }
      } else if (!Configuration.useCtrlKeys){
          key = '<D-d>'
      }
    }

if users explicitly disabled <C-d> means they want default <C-d> multi-cursor feature, else handle as the rest.

@ghost ghost changed the title remap C-d to D-d with useCtrlKeys:false only on darwin C-d check if it is explicitly defined first else use useCtrlKeys Jan 6, 2018
@ghost ghost changed the title C-d check if it is explicitly defined first else use useCtrlKeys C-d check if it is explicitly defined first else use useCtrlKeys in order to be remapped to D-d Jan 6, 2018
@TravisBuddy
Copy link

Travis tests have failed

Hey Arxzin,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 8.9.1

git ls-tree -r HEAD --name-only | grep ".*.[t|j]s$" | xargs ./node_modules/prettier/bin/prettier.js --write --print-width 100 --single-quote --trailing-comma es5
extension.tsextension.ts 444ms
gulpfile.jsgulpfile.js 70ms
src/actions/base.tssrc/actions/base.ts 91ms
src/actions/commands/actions.tssrc/actions/commands/actions.ts 1073ms
src/actions/commands/insert.tssrc/actions/commands/insert.ts 175ms
src/actions/include-all.tssrc/actions/include-all.ts 10ms
src/actions/motion.tssrc/actions/motion.ts 397ms
src/actions/operator.tssrc/actions/operator.ts 200ms
src/actions/plugins/easymotion/easymotion.cmd.tssrc/actions/plugins/easymotion/easymotion.cmd.ts 89ms
src/actions/plugins/easymotion/easymotion.tssrc/actions/plugins/easymotion/easymotion.ts 95ms
src/actions/plugins/easymotion/markerGenerator.tssrc/actions/plugins/easymotion/markerGenerator.ts 23ms
src/actions/plugins/easymotion/registerMoveActions.tssrc/actions/plugins/easymotion/registerMoveActions.ts 50ms
src/actions/plugins/easymotion/types.tssrc/actions/plugins/easymotion/types.ts 6ms
src/actions/plugins/surround.tssrc/actions/plugins/surround.ts 149ms
src/actions/textobject.tssrc/actions/textobject.ts 200ms
src/cmd_line/commandLine.tssrc/cmd_line/commandLine.ts 40ms
src/cmd_line/commands/close.tssrc/cmd_line/commands/close.ts 12ms
src/cmd_line/commands/deleteRange.tssrc/cmd_line/commands/deleteRange.ts 26ms
src/cmd_line/commands/file.tssrc/cmd_line/commands/file.ts 33ms
src/cmd_line/commands/nohl.tssrc/cmd_line/commands/nohl.ts 5ms
src/cmd_line/commands/only.tssrc/cmd_line/commands/only.ts 5ms
src/cmd_line/commands/quit.tssrc/cmd_line/commands/quit.ts 17ms
src/cmd_line/commands/read.tssrc/cmd_line/commands/read.ts 18ms
src/cmd_line/commands/register.tssrc/cmd_line/commands/register.ts 38ms
src/cmd_line/commands/setoptions.tssrc/cmd_line/commands/setoptions.ts 27ms
src/cmd_line/commands/sort.tssrc/cmd_line/commands/sort.ts 19ms
src/cmd_line/commands/substitute.tssrc/cmd_line/commands/substitute.ts 36ms
src/cmd_line/commands/tab.tssrc/cmd_line/commands/tab.ts 26ms
src/cmd_line/commands/wall.tssrc/cmd_line/commands/wall.ts 14ms
src/cmd_line/commands/write.tssrc/cmd_line/commands/write.ts 17ms
src/cmd_line/commands/writequit.tssrc/cmd_line/commands/writequit.ts 13ms
src/cmd_line/commands/writequitall.tssrc/cmd_line/commands/writequitall.ts 15ms
src/cmd_line/lexer.tssrc/cmd_line/lexer.ts 52ms
src/cmd_line/node.tssrc/cmd_line/node.ts 41ms
src/cmd_line/parser.tssrc/cmd_line/parser.ts 14ms
src/cmd_line/scanner.tssrc/cmd_line/scanner.ts 16ms
src/cmd_line/subparser.tssrc/cmd_line/subparser.ts 9ms
src/cmd_line/subparsers/close.tssrc/cmd_line/subparsers/close.ts 5ms
src/cmd_line/subparsers/deleteRange.tssrc/cmd_line/subparsers/deleteRange.ts 2ms
src/cmd_line/subparsers/file.tssrc/cmd_line/subparsers/file.ts 7ms
src/cmd_line/subparsers/nohl.tssrc/cmd_line/subparsers/nohl.ts 2ms
src/cmd_line/subparsers/only.tssrc/cmd_line/subparsers/only.ts 2ms
src/cmd_line/subparsers/quit.tssrc/cmd_line/subparsers/quit.ts 21ms
src/cmd_line/subparsers/read.tssrc/cmd_line/subparsers/read.ts 7ms
src/cmd_line/subparsers/register.tssrc/cmd_line/subparsers/register.ts 3ms
src/cmd_line/subparsers/setoptions.tssrc/cmd_line/subparsers/setoptions.ts 25ms
src/cmd_line/subparsers/sort.tssrc/cmd_line/subparsers/sort.ts 5ms
src/cmd_line/subparsers/substitute.tssrc/cmd_line/subparsers/substitute.ts 42ms
src/cmd_line/subparsers/tab.tssrc/cmd_line/subparsers/tab.ts 14ms
src/cmd_line/subparsers/wall.tssrc/cmd_line/subparsers/wall.ts 4ms
src/cmd_line/subparsers/write.tssrc/cmd_line/subparsers/write.ts 9ms
src/cmd_line/subparsers/writequit.tssrc/cmd_line/subparsers/writequit.ts 6ms
src/cmd_line/subparsers/writequitall.tssrc/cmd_line/subparsers/writequitall.ts 4ms
src/cmd_line/token.tssrc/cmd_line/token.ts 4ms
src/common/matching/matcher.tssrc/common/matching/matcher.ts 34ms
src/common/matching/quoteMatcher.tssrc/common/matching/quoteMatcher.ts 7ms
src/common/matching/tagMatcher.tssrc/common/matching/tagMatcher.ts 14ms
src/common/motion/position.tssrc/common/motion/position.ts 247ms
src/common/motion/range.tssrc/common/motion/range.ts 19ms
src/common/number/numericString.tssrc/common/number/numericString.ts 40ms
src/configuration/configuration.tssrc/configuration/configuration.ts 98ms
src/configuration/decoration.tssrc/configuration/decoration.ts 7ms
src/configuration/notation.tssrc/configuration/notation.ts 14ms
src/configuration/remapper.tssrc/configuration/remapper.ts 44ms
src/editorIdentity.tssrc/editorIdentity.ts 7ms
src/error.tssrc/error.ts 26ms
src/globals.tssrc/globals.ts 2ms
src/history/historyTracker.tssrc/history/historyTracker.ts 157ms
src/mode/mode.tssrc/mode/mode.ts 8ms
src/mode/modeHandler.tssrc/mode/modeHandler.ts 262ms
src/mode/modes.tssrc/mode/modes.ts 14ms
src/neovim/nvimUtil.tssrc/neovim/nvimUtil.ts 28ms
src/register/register.tssrc/register/register.ts 62ms
src/state/globalState.tssrc/state/globalState.ts 6ms
src/state/recordedState.tssrc/state/recordedState.ts 16ms
src/state/replaceState.tssrc/state/replaceState.ts 4ms
src/state/searchState.tssrc/state/searchState.ts 47ms
src/state/vimState.tssrc/state/vimState.ts 31ms
src/statusBar.tssrc/statusBar.ts 9ms
src/taskQueue.tssrc/taskQueue.ts 17ms
src/textEditor.tssrc/textEditor.ts 70ms
src/transformations/transformations.tssrc/transformations/transformations.ts 19ms
src/util.tssrc/util.ts 8ms
test/cmd_line/lexer.test.tstest/cmd_line/lexer.test.ts 41ms
test/cmd_line/parser.test.tstest/cmd_line/parser.test.ts 24ms
test/cmd_line/scanner.test.tstest/cmd_line/scanner.test.ts 29ms
test/cmd_line/sort.test.tstest/cmd_line/sort.test.ts 8ms
test/cmd_line/subparser.close.test.tstest/cmd_line/subparser.close.test.ts 7ms
test/cmd_line/subparser.quit.test.tstest/cmd_line/subparser.quit.test.ts 9ms
test/cmd_line/subparser.substitute.test.tstest/cmd_line/subparser.substitute.test.ts 6ms
test/cmd_line/subparser.test.tstest/cmd_line/subparser.test.ts 22ms
test/cmd_line/substitute.test.tstest/cmd_line/substitute.test.ts 57ms
test/cmd_line/vsplit.test.tstest/cmd_line/vsplit.test.ts 7ms
test/cmd_line/writequit.test.tstest/cmd_line/writequit.test.ts 12ms
test/error.test.tstest/error.test.ts 4ms
test/extension.test.tstest/extension.test.ts 7ms
test/index.tstest/index.ts 4ms
test/macro.test.tstest/macro.test.ts 16ms
test/mode/modeHandler.test.tstest/mode/modeHandler.test.ts 7ms
test/mode/modeInsert.test.tstest/mode/modeInsert.test.ts 66ms
test/mode/modeNormal.test.tstest/mode/modeNormal.test.ts 295ms
test/mode/modeReplace.test.tstest/mode/modeReplace.test.ts 10ms
test/mode/modeVisual.test.tstest/mode/modeVisual.test.ts 172ms
test/mode/modeVisualBlock.test.tstest/mode/modeVisualBlock.test.ts 99ms
test/mode/modeVisualLine.test.tstest/mode/modeVisualLine.test.ts 140ms
test/mode/normalModeTests/commands.test.tstest/mode/normalModeTests/commands.test.ts 42ms
test/mode/normalModeTests/dot.test.tstest/mode/normalModeTests/dot.test.ts 36ms
test/mode/normalModeTests/motions.test.tstest/mode/normalModeTests/motions.test.ts 159ms
test/motion.test.tstest/motion.test.ts 110ms
test/notation.test.tstest/notation.test.ts 3ms
test/number/numericString.test.tstest/number/numericString.test.ts 5ms
test/operator/comment.test.tstest/operator/comment.test.ts 22ms
test/operator/put.test.tstest/operator/put.test.ts 10ms
test/plugins/easymotion.test.tstest/plugins/easymotion.test.ts 41ms
test/plugins/surround.test.tstest/plugins/surround.test.ts 13ms
test/register/register.test.tstest/register/register.test.ts 16ms
test/register/repeatableMovement.test.tstest/register/repeatableMovement.test.ts 9ms
test/testSimplifier.tstest/testSimplifier.ts 47ms
test/testUtils.tstest/testUtils.ts 19ms
test/textEditor.test.tstest/textEditor.test.ts 11ms
typings/custom/promised-neovim-client.d.tstypings/custom/promised-neovim-client.d.ts 89ms

gulp
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
/home/travis/.nvm/versions/node/v8.9.1/bin/gulp -> /home/travis/.nvm/versions/node/v8.9.1/lib/node_modules/gulp/bin/gulp.js
+ [email protected]
added 274 packages in 5.896s

$ npm install;

> [email protected] postinstall /home/travis/build/VSCodeVim/Vim/node_modules/typings-global
> node ./dist/install.js

@types/node already installed

> [email protected] postinstall /home/travis/build/VSCodeVim/Vim
> node ./node_modules/vscode/bin/install && gulp init

Detected VS Code engine version: ^1.17.0
Found minimal version that qualifies engine range: 1.17.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/be377c0faf7574a59f84940f593a6849f12e4de7/src/vs/vscode.d.ts
vscode.d.ts successfully installed!

[10:57:44] Using gulpfile ~/build/VSCodeVim/Vim/gulpfile.js
[10:57:44] Starting 'typings'...
[10:57:45] Finished 'typings' after 1.01 s
[10:57:45] Starting 'typings-vscode-definitions'...
[10:57:45] Finished 'typings-vscode-definitions' after 4.18 ms
[10:57:45] Starting 'init'...
[10:57:45] Finished 'init' after 46 μs
added 624 packages in 13.561s

$ git ls-tree -r HEAD --name-only | grep ".*.[t|j]s$" | xargs ./node_modules/prettier/bin/prettier.js --write --print-width 100 --single-quote --trailing-comma es5
extension.tsextension.ts 444ms
gulpfile.jsgulpfile.js 70ms
src/actions/base.tssrc/actions/base.ts 91ms
src/actions/commands/actions.tssrc/actions/commands/actions.ts 1073ms
src/actions/commands/insert.tssrc/actions/commands/insert.ts 175ms
src/actions/include-all.tssrc/actions/include-all.ts 10ms
src/actions/motion.tssrc/actions/motion.ts 397ms
src/actions/operator.tssrc/actions/operator.ts 200ms
src/actions/plugins/easymotion/easymotion.cmd.tssrc/actions/plugins/easymotion/easymotion.cmd.ts 89ms
src/actions/plugins/easymotion/easymotion.tssrc/actions/plugins/easymotion/easymotion.ts 95ms
src/actions/plugins/easymotion/markerGenerator.tssrc/actions/plugins/easymotion/markerGenerator.ts 23ms
src/actions/plugins/easymotion/registerMoveActions.tssrc/actions/plugins/easymotion/registerMoveActions.ts 50ms
src/actions/plugins/easymotion/types.tssrc/actions/plugins/easymotion/types.ts 6ms
src/actions/plugins/surround.tssrc/actions/plugins/surround.ts 149ms
src/actions/textobject.tssrc/actions/textobject.ts 200ms
src/cmd_line/commandLine.tssrc/cmd_line/commandLine.ts 40ms
src/cmd_line/commands/close.tssrc/cmd_line/commands/close.ts 12ms
src/cmd_line/commands/deleteRange.tssrc/cmd_line/commands/deleteRange.ts 26ms
src/cmd_line/commands/file.tssrc/cmd_line/commands/file.ts 33ms
src/cmd_line/commands/nohl.tssrc/cmd_line/commands/nohl.ts 5ms
src/cmd_line/commands/only.tssrc/cmd_line/commands/only.ts 5ms
src/cmd_line/commands/quit.tssrc/cmd_line/commands/quit.ts 17ms
src/cmd_line/commands/read.tssrc/cmd_line/commands/read.ts 18ms
src/cmd_line/commands/register.tssrc/cmd_line/commands/register.ts 38ms
src/cmd_line/commands/setoptions.tssrc/cmd_line/commands/setoptions.ts 27ms
src/cmd_line/commands/sort.tssrc/cmd_line/commands/sort.ts 19ms
src/cmd_line/commands/substitute.tssrc/cmd_line/commands/substitute.ts 36ms
src/cmd_line/commands/tab.tssrc/cmd_line/commands/tab.ts 26ms
src/cmd_line/commands/wall.tssrc/cmd_line/commands/wall.ts 14ms
src/cmd_line/commands/write.tssrc/cmd_line/commands/write.ts 17ms
src/cmd_line/commands/writequit.tssrc/cmd_line/commands/writequit.ts 13ms
src/cmd_line/commands/writequitall.tssrc/cmd_line/commands/writequitall.ts 15ms
src/cmd_line/lexer.tssrc/cmd_line/lexer.ts 52ms
src/cmd_line/node.tssrc/cmd_line/node.ts 41ms
src/cmd_line/parser.tssrc/cmd_line/parser.ts 14ms
src/cmd_line/scanner.tssrc/cmd_line/scanner.ts 16ms
src/cmd_line/subparser.tssrc/cmd_line/subparser.ts 9ms
src/cmd_line/subparsers/close.tssrc/cmd_line/subparsers/close.ts 5ms
src/cmd_line/subparsers/deleteRange.tssrc/cmd_line/subparsers/deleteRange.ts 2ms
src/cmd_line/subparsers/file.tssrc/cmd_line/subparsers/file.ts 7ms
src/cmd_line/subparsers/nohl.tssrc/cmd_line/subparsers/nohl.ts 2ms
src/cmd_line/subparsers/only.tssrc/cmd_line/subparsers/only.ts 2ms
src/cmd_line/subparsers/quit.tssrc/cmd_line/subparsers/quit.ts 21ms
src/cmd_line/subparsers/read.tssrc/cmd_line/subparsers/read.ts 7ms
src/cmd_line/subparsers/register.tssrc/cmd_line/subparsers/register.ts 3ms
src/cmd_line/subparsers/setoptions.tssrc/cmd_line/subparsers/setoptions.ts 25ms
src/cmd_line/subparsers/sort.tssrc/cmd_line/subparsers/sort.ts 5ms
src/cmd_line/subparsers/substitute.tssrc/cmd_line/subparsers/substitute.ts 42ms
src/cmd_line/subparsers/tab.tssrc/cmd_line/subparsers/tab.ts 14ms
src/cmd_line/subparsers/wall.tssrc/cmd_line/subparsers/wall.ts 4ms
src/cmd_line/subparsers/write.tssrc/cmd_line/subparsers/write.ts 9ms
src/cmd_line/subparsers/writequit.tssrc/cmd_line/subparsers/writequit.ts 6ms
src/cmd_line/subparsers/writequitall.tssrc/cmd_line/subparsers/writequitall.ts 4ms
src/cmd_line/token.tssrc/cmd_line/token.ts 4ms
src/common/matching/matcher.tssrc/common/matching/matcher.ts 34ms
src/common/matching/quoteMatcher.tssrc/common/matching/quoteMatcher.ts 7ms
src/common/matching/tagMatcher.tssrc/common/matching/tagMatcher.ts 14ms
src/common/motion/position.tssrc/common/motion/position.ts 247ms
src/common/motion/range.tssrc/common/motion/range.ts 19ms
src/common/number/numericString.tssrc/common/number/numericString.ts 40ms
src/configuration/configuration.tssrc/configuration/configuration.ts 98ms
src/configuration/decoration.tssrc/configuration/decoration.ts 7ms
src/configuration/notation.tssrc/configuration/notation.ts 14ms
src/configuration/remapper.tssrc/configuration/remapper.ts 44ms
src/editorIdentity.tssrc/editorIdentity.ts 7ms
src/error.tssrc/error.ts 26ms
src/globals.tssrc/globals.ts 2ms
src/history/historyTracker.tssrc/history/historyTracker.ts 157ms
src/mode/mode.tssrc/mode/mode.ts 8ms
src/mode/modeHandler.tssrc/mode/modeHandler.ts 262ms
src/mode/modes.tssrc/mode/modes.ts 14ms
src/neovim/nvimUtil.tssrc/neovim/nvimUtil.ts 28ms
src/register/register.tssrc/register/register.ts 62ms
src/state/globalState.tssrc/state/globalState.ts 6ms
src/state/recordedState.tssrc/state/recordedState.ts 16ms
src/state/replaceState.tssrc/state/replaceState.ts 4ms
src/state/searchState.tssrc/state/searchState.ts 47ms
src/state/vimState.tssrc/state/vimState.ts 31ms
src/statusBar.tssrc/statusBar.ts 9ms
src/taskQueue.tssrc/taskQueue.ts 17ms
src/textEditor.tssrc/textEditor.ts 70ms
src/transformations/transformations.tssrc/transformations/transformations.ts 19ms
src/util.tssrc/util.ts 8ms
test/cmd_line/lexer.test.tstest/cmd_line/lexer.test.ts 41ms
test/cmd_line/parser.test.tstest/cmd_line/parser.test.ts 24ms
test/cmd_line/scanner.test.tstest/cmd_line/scanner.test.ts 29ms
test/cmd_line/sort.test.tstest/cmd_line/sort.test.ts 8ms
test/cmd_line/subparser.close.test.tstest/cmd_line/subparser.close.test.ts 7ms
test/cmd_line/subparser.quit.test.tstest/cmd_line/subparser.quit.test.ts 9ms
test/cmd_line/subparser.substitute.test.tstest/cmd_line/subparser.substitute.test.ts 6ms
test/cmd_line/subparser.test.tstest/cmd_line/subparser.test.ts 22ms
test/cmd_line/substitute.test.tstest/cmd_line/substitute.test.ts 57ms
test/cmd_line/vsplit.test.tstest/cmd_line/vsplit.test.ts 7ms
test/cmd_line/writequit.test.tstest/cmd_line/writequit.test.ts 12ms
test/error.test.tstest/error.test.ts 4ms
test/extension.test.tstest/extension.test.ts 7ms
test/index.tstest/index.ts 4ms
test/macro.test.tstest/macro.test.ts 16ms
test/mode/modeHandler.test.tstest/mode/modeHandler.test.ts 7ms
test/mode/modeInsert.test.tstest/mode/modeInsert.test.ts 66ms
test/mode/modeNormal.test.tstest/mode/modeNormal.test.ts 295ms
test/mode/modeReplace.test.tstest/mode/modeReplace.test.ts 10ms
test/mode/modeVisual.test.tstest/mode/modeVisual.test.ts 172ms
test/mode/modeVisualBlock.test.tstest/mode/modeVisualBlock.test.ts 99ms
test/mode/modeVisualLine.test.tstest/mode/modeVisualLine.test.ts 140ms
test/mode/normalModeTests/commands.test.tstest/mode/normalModeTests/commands.test.ts 42ms
test/mode/normalModeTests/dot.test.tstest/mode/normalModeTests/dot.test.ts 36ms
test/mode/normalModeTests/motions.test.tstest/mode/normalModeTests/motions.test.ts 159ms
test/motion.test.tstest/motion.test.ts 110ms
test/notation.test.tstest/notation.test.ts 3ms
test/number/numericString.test.tstest/number/numericString.test.ts 5ms
test/operator/comment.test.tstest/operator/comment.test.ts 22ms
test/operator/put.test.tstest/operator/put.test.ts 10ms
test/plugins/easymotion.test.tstest/plugins/easymotion.test.ts 41ms
test/plugins/surround.test.tstest/plugins/surround.test.ts 13ms
test/register/register.test.tstest/register/register.test.ts 16ms
test/register/repeatableMovement.test.tstest/register/repeatableMovement.test.ts 9ms
test/testSimplifier.tstest/testSimplifier.ts 47ms
test/testUtils.tstest/testUtils.ts 19ms
test/textEditor.test.tstest/textEditor.test.ts 11ms
typings/custom/promised-neovim-client.d.tstypings/custom/promised-neovim-client.d.ts 89ms

which match the standard *handlekeys config trumps usectrlkeys config*
if (key === '<C-d>' && !Configuration.useCtrlKeys) {
key = '<D-d>';

// #2162 fixed by 5cc821e except <C-d> key due to this remapping
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remove the comment. that information is in git blame

// Now keep the remapping but check if <C-d> is explicitly defined
// within the handleKeys scope firstly
if (key === '<C-d>') {
const useKeyCtrlD = Configuration.handleKeys['<C-d>'];
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be all simplified to one statement.

if (Configuration.handleKeys['<C-d>'] ===false  || !Configuration.useCtrlKeys) {
...
}

Copy link
Author

@ghost ghost Jan 11, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

remap <C-d> to <D-d> within this statement?
what about

"vim.useCtrlKeys": false,
"vim.handleKeys": {
    "<C-d>": true
}

, should vim <C-d> enable?

@jpoon
Copy link
Member

jpoon commented Jan 11, 2018

Let's draw this out cause it's kind of confusing.

useCtrlKeys = true useCtrlKeys = false
handleKeys = true remap to <D-d> remap to <D-d>
handleKeys = false VS Code default behaviour VS Code default behaviour
undefined VSCodeVim move page half down VS Code default behaviour

where VS Code default behaviour for <C-d> is 'add selection to next find match'. Is this what we want?

cc: @Chillee cause you added this rebinding initially.

@ghost
Copy link
Author

ghost commented Jan 12, 2018

That's the confusing part, thought we want

useCtrlKeys = true useCtrlKeys = false
handleKeys = true VSCodeVim move page half down VSCodeVim move page half down
handleKeys = false remap to <D-d> remap to <D-d>
undefined VSCodeVim move page half down VS Code default behavior

where
<D-d> = VS Code default behavior = add selection to next find match
<C-d> = VSCodeVim move page half down

I thought remap to <D-d> does the same thing as VS Code default behaviour, add selection to next find match, from these lines from actions.ts, 1, 2.

From user's perspective, they want <C-d> behavior as
Vim move page half down, write <C-d>: true,
Add selection to next find match, write <C-d>: false

@jpoon
Copy link
Member

jpoon commented Jan 12, 2018

I want to eventually remove useCtrlKeys -- this setting is making everything so complicated. If that is the case, how about a slight modification to useCtrlKeys is effectively ignored:

useCtrlKeys = true useCtrlKeys = false
handleKeys = true VSCodeVim move page half down VSCodeVim move page half down
handleKeys = false remap to <D-d> remap to <D-d>
undefined VS Code default behavior VS Code default behavior

@ghost
Copy link
Author

ghost commented Jan 12, 2018

Yep, it either further confuses users and developers, or makes people suffer from writing long configs to decide every Ctrl key. lol.

Maybe remove it is a better idea. The "consistence" is more important after all.

@jpoon
Copy link
Member

jpoon commented Jan 12, 2018

makes people suffer from writing long configs to decide every Ctrl key

When I get rid of useCtrlKeys, I'll include a list of default things so most people don't need to reconfigure. But it will be a breaking change :(.

Not sure when I'll get around to doing that. As such, do you want to update this PR to match the latest discussed table then we can merge?

@ghost
Copy link
Author

ghost commented Jan 12, 2018

Yes, already made Vim <C-d> disabled by default, unless users define <C-d>: true, it will be remapped to <D-d>, which perform add selection to next find match.

    if (key === '<C-d>' && ! (Configuration.handleKeys['<C-d>'] === true)) {
      key = '<D-d>';
    }

Or should it not be when it's undefined? just let useKey = false in configuration.ts when <D-d> is undefined?

@TravisBuddy
Copy link

Travis tests have failed

Hey Curvas,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 8.9.1

git ls-tree -r HEAD --name-only | grep ".*.[t|j]s$" | xargs ./node_modules/prettier/bin/prettier.js --write --print-width 100 --single-quote --trailing-comma es5
extension.tsextension.ts 458ms
gulpfile.jsgulpfile.js 77ms
src/actions/base.tssrc/actions/base.ts 118ms
src/actions/commands/actions.tssrc/actions/commands/actions.ts 1005ms
src/actions/commands/insert.tssrc/actions/commands/insert.ts 154ms
src/actions/include-all.tssrc/actions/include-all.ts 18ms
src/actions/motion.tssrc/actions/motion.ts 489ms
src/actions/operator.tssrc/actions/operator.ts 181ms
src/actions/plugins/easymotion/easymotion.cmd.tssrc/actions/plugins/easymotion/easymotion.cmd.ts 76ms
src/actions/plugins/easymotion/easymotion.tssrc/actions/plugins/easymotion/easymotion.ts 97ms
src/actions/plugins/easymotion/markerGenerator.tssrc/actions/plugins/easymotion/markerGenerator.ts 14ms
src/actions/plugins/easymotion/registerMoveActions.tssrc/actions/plugins/easymotion/registerMoveActions.ts 38ms
src/actions/plugins/easymotion/types.tssrc/actions/plugins/easymotion/types.ts 5ms
src/actions/plugins/surround.tssrc/actions/plugins/surround.ts 120ms
src/actions/textobject.tssrc/actions/textobject.ts 201ms
src/cmd_line/commandLine.tssrc/cmd_line/commandLine.ts 16ms
src/cmd_line/commands/close.tssrc/cmd_line/commands/close.ts 11ms
src/cmd_line/commands/deleteRange.tssrc/cmd_line/commands/deleteRange.ts 21ms
src/cmd_line/commands/file.tssrc/cmd_line/commands/file.ts 27ms
src/cmd_line/commands/nohl.tssrc/cmd_line/commands/nohl.ts 5ms
src/cmd_line/commands/only.tssrc/cmd_line/commands/only.ts 10ms
src/cmd_line/commands/quit.tssrc/cmd_line/commands/quit.ts 22ms
src/cmd_line/commands/read.tssrc/cmd_line/commands/read.ts 15ms
src/cmd_line/commands/register.tssrc/cmd_line/commands/register.ts 30ms
src/cmd_line/commands/setoptions.tssrc/cmd_line/commands/setoptions.ts 22ms
src/cmd_line/commands/sort.tssrc/cmd_line/commands/sort.ts 25ms
src/cmd_line/commands/substitute.tssrc/cmd_line/commands/substitute.ts 63ms
src/cmd_line/commands/tab.tssrc/cmd_line/commands/tab.ts 33ms
src/cmd_line/commands/wall.tssrc/cmd_line/commands/wall.ts 4ms
src/cmd_line/commands/write.tssrc/cmd_line/commands/write.ts 17ms
src/cmd_line/commands/writequit.tssrc/cmd_line/commands/writequit.ts 11ms
src/cmd_line/commands/writequitall.tssrc/cmd_line/commands/writequitall.ts 21ms
src/cmd_line/lexer.tssrc/cmd_line/lexer.ts 82ms
src/cmd_line/node.tssrc/cmd_line/node.ts 26ms
src/cmd_line/parser.tssrc/cmd_line/parser.ts 15ms
src/cmd_line/scanner.tssrc/cmd_line/scanner.ts 29ms
src/cmd_line/subparser.tssrc/cmd_line/subparser.ts 8ms
src/cmd_line/subparsers/close.tssrc/cmd_line/subparsers/close.ts 4ms
src/cmd_line/subparsers/deleteRange.tssrc/cmd_line/subparsers/deleteRange.ts 3ms
src/cmd_line/subparsers/file.tssrc/cmd_line/subparsers/file.ts 6ms
src/cmd_line/subparsers/nohl.tssrc/cmd_line/subparsers/nohl.ts 2ms
src/cmd_line/subparsers/only.tssrc/cmd_line/subparsers/only.ts 1ms
src/cmd_line/subparsers/quit.tssrc/cmd_line/subparsers/quit.ts 5ms
src/cmd_line/subparsers/read.tssrc/cmd_line/subparsers/read.ts 5ms
src/cmd_line/subparsers/register.tssrc/cmd_line/subparsers/register.ts 7ms
src/cmd_line/subparsers/setoptions.tssrc/cmd_line/subparsers/setoptions.ts 12ms
src/cmd_line/subparsers/sort.tssrc/cmd_line/subparsers/sort.ts 3ms
src/cmd_line/subparsers/substitute.tssrc/cmd_line/subparsers/substitute.ts 38ms
src/cmd_line/subparsers/tab.tssrc/cmd_line/subparsers/tab.ts 12ms
src/cmd_line/subparsers/wall.tssrc/cmd_line/subparsers/wall.ts 4ms
src/cmd_line/subparsers/write.tssrc/cmd_line/subparsers/write.ts 8ms
src/cmd_line/subparsers/writequit.tssrc/cmd_line/subparsers/writequit.ts 6ms
src/cmd_line/subparsers/writequitall.tssrc/cmd_line/subparsers/writequitall.ts 4ms
src/cmd_line/token.tssrc/cmd_line/token.ts 5ms
src/common/matching/matcher.tssrc/common/matching/matcher.ts 41ms
src/common/matching/quoteMatcher.tssrc/common/matching/quoteMatcher.ts 6ms
src/common/matching/tagMatcher.tssrc/common/matching/tagMatcher.ts 12ms
src/common/motion/position.tssrc/common/motion/position.ts 230ms
src/common/motion/range.tssrc/common/motion/range.ts 12ms
src/common/number/numericString.tssrc/common/number/numericString.ts 36ms
src/configuration/configuration.tssrc/configuration/configuration.ts 82ms
src/configuration/decoration.tssrc/configuration/decoration.ts 5ms
src/configuration/notation.tssrc/configuration/notation.ts 11ms
src/configuration/remapper.tssrc/configuration/remapper.ts 36ms
src/editorIdentity.tssrc/editorIdentity.ts 18ms
src/error.tssrc/error.ts 9ms
src/globals.tssrc/globals.ts 2ms
src/history/historyTracker.tssrc/history/historyTracker.ts 134ms
src/mode/mode.tssrc/mode/mode.ts 12ms
src/mode/modeHandler.tssrc/mode/modeHandler.ts 267ms
src/mode/modes.tssrc/mode/modes.ts 16ms
src/neovim/nvimUtil.tssrc/neovim/nvimUtil.ts 31ms
src/register/register.tssrc/register/register.ts 100ms
src/state/globalState.tssrc/state/globalState.ts 7ms
src/state/recordedState.tssrc/state/recordedState.ts 22ms
src/state/replaceState.tssrc/state/replaceState.ts 4ms
src/state/searchState.tssrc/state/searchState.ts 45ms
src/state/vimState.tssrc/state/vimState.ts 18ms
src/statusBar.tssrc/statusBar.ts 5ms
src/taskQueue.tssrc/taskQueue.ts 11ms
src/textEditor.tssrc/textEditor.ts 50ms
src/transformations/transformations.tssrc/transformations/transformations.ts 23ms
src/util.tssrc/util.ts 10ms
test/cmd_line/lexer.test.tstest/cmd_line/lexer.test.ts 47ms
test/cmd_line/parser.test.tstest/cmd_line/parser.test.ts 12ms
test/cmd_line/scanner.test.tstest/cmd_line/scanner.test.ts 23ms
test/cmd_line/sort.test.tstest/cmd_line/sort.test.ts 12ms
test/cmd_line/subparser.close.test.tstest/cmd_line/subparser.close.test.ts 9ms
test/cmd_line/subparser.quit.test.tstest/cmd_line/subparser.quit.test.ts 6ms
test/cmd_line/subparser.substitute.test.tstest/cmd_line/subparser.substitute.test.ts 8ms
test/cmd_line/subparser.test.tstest/cmd_line/subparser.test.ts 24ms
test/cmd_line/substitute.test.tstest/cmd_line/substitute.test.ts 56ms
test/cmd_line/vsplit.test.tstest/cmd_line/vsplit.test.ts 7ms
test/cmd_line/writequit.test.tstest/cmd_line/writequit.test.ts 10ms
test/configuration/notation.test.tstest/configuration/notation.test.ts 5ms
test/error.test.tstest/error.test.ts 4ms
test/extension.test.tstest/extension.test.ts 6ms
test/index.tstest/index.ts 4ms
test/macro.test.tstest/macro.test.ts 22ms
test/mode/modeHandler.test.tstest/mode/modeHandler.test.ts 6ms
test/mode/modeInsert.test.tstest/mode/modeInsert.test.ts 41ms
test/mode/modeNormal.test.tstest/mode/modeNormal.test.ts 288ms
test/mode/modeReplace.test.tstest/mode/modeReplace.test.ts 8ms
test/mode/modeVisual.test.tstest/mode/modeVisual.test.ts 155ms
test/mode/modeVisualBlock.test.tstest/mode/modeVisualBlock.test.ts 22ms
test/mode/modeVisualLine.test.tstest/mode/modeVisualLine.test.ts 63ms
test/mode/normalModeTests/commands.test.tstest/mode/normalModeTests/commands.test.ts 32ms
test/mode/normalModeTests/dot.test.tstest/mode/normalModeTests/dot.test.ts 17ms
test/mode/normalModeTests/motions.test.tstest/mode/normalModeTests/motions.test.ts 86ms
test/motion.test.tstest/motion.test.ts 178ms
test/number/numericString.test.tstest/number/numericString.test.ts 10ms
test/operator/comment.test.tstest/operator/comment.test.ts 10ms
test/operator/put.test.tstest/operator/put.test.ts 5ms
test/plugins/easymotion.test.tstest/plugins/easymotion.test.ts 28ms
test/plugins/surround.test.tstest/plugins/surround.test.ts 17ms
test/register/register.test.tstest/register/register.test.ts 14ms
test/register/repeatableMovement.test.tstest/register/repeatableMovement.test.ts 5ms
test/testSimplifier.tstest/testSimplifier.ts 35ms
test/testUtils.tstest/testUtils.ts 26ms
test/textEditor.test.tstest/textEditor.test.ts 11ms
typings/custom/promised-neovim-client.d.tstypings/custom/promised-neovim-client.d.ts 84ms

gulp
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
/home/travis/.nvm/versions/node/v8.9.1/bin/gulp -> /home/travis/.nvm/versions/node/v8.9.1/lib/node_modules/gulp/bin/gulp.js
+ [email protected]
added 274 packages in 5.561s

$ npm install;

> [email protected] postinstall /home/travis/build/VSCodeVim/Vim/node_modules/typings-global
> node ./dist/install.js

@types/node already installed

> [email protected] postinstall /home/travis/build/VSCodeVim/Vim
> node ./node_modules/vscode/bin/install && gulp init

Detected VS Code engine version: ^1.17.0
Found minimal version that qualifies engine range: 1.17.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/be377c0faf7574a59f84940f593a6849f12e4de7/src/vs/vscode.d.ts
vscode.d.ts successfully installed!

[12:25:26] Using gulpfile ~/build/VSCodeVim/Vim/gulpfile.js
[12:25:26] Starting 'typings'...
[12:25:27] Finished 'typings' after 1.16 s
[12:25:27] Starting 'typings-vscode-definitions'...
[12:25:27] Finished 'typings-vscode-definitions' after 4.63 ms
[12:25:27] Starting 'init'...
[12:25:27] Finished 'init' after 29 μs
added 624 packages in 13.278s

$ git ls-tree -r HEAD --name-only | grep ".*.[t|j]s$" | xargs ./node_modules/prettier/bin/prettier.js --write --print-width 100 --single-quote --trailing-comma es5
extension.tsextension.ts 458ms
gulpfile.jsgulpfile.js 77ms
src/actions/base.tssrc/actions/base.ts 118ms
src/actions/commands/actions.tssrc/actions/commands/actions.ts 1005ms
src/actions/commands/insert.tssrc/actions/commands/insert.ts 154ms
src/actions/include-all.tssrc/actions/include-all.ts 18ms
src/actions/motion.tssrc/actions/motion.ts 489ms
src/actions/operator.tssrc/actions/operator.ts 181ms
src/actions/plugins/easymotion/easymotion.cmd.tssrc/actions/plugins/easymotion/easymotion.cmd.ts 76ms
src/actions/plugins/easymotion/easymotion.tssrc/actions/plugins/easymotion/easymotion.ts 97ms
src/actions/plugins/easymotion/markerGenerator.tssrc/actions/plugins/easymotion/markerGenerator.ts 14ms
src/actions/plugins/easymotion/registerMoveActions.tssrc/actions/plugins/easymotion/registerMoveActions.ts 38ms
src/actions/plugins/easymotion/types.tssrc/actions/plugins/easymotion/types.ts 5ms
src/actions/plugins/surround.tssrc/actions/plugins/surround.ts 120ms
src/actions/textobject.tssrc/actions/textobject.ts 201ms
src/cmd_line/commandLine.tssrc/cmd_line/commandLine.ts 16ms
src/cmd_line/commands/close.tssrc/cmd_line/commands/close.ts 11ms
src/cmd_line/commands/deleteRange.tssrc/cmd_line/commands/deleteRange.ts 21ms
src/cmd_line/commands/file.tssrc/cmd_line/commands/file.ts 27ms
src/cmd_line/commands/nohl.tssrc/cmd_line/commands/nohl.ts 5ms
src/cmd_line/commands/only.tssrc/cmd_line/commands/only.ts 10ms
src/cmd_line/commands/quit.tssrc/cmd_line/commands/quit.ts 22ms
src/cmd_line/commands/read.tssrc/cmd_line/commands/read.ts 15ms
src/cmd_line/commands/register.tssrc/cmd_line/commands/register.ts 30ms
src/cmd_line/commands/setoptions.tssrc/cmd_line/commands/setoptions.ts 22ms
src/cmd_line/commands/sort.tssrc/cmd_line/commands/sort.ts 25ms
src/cmd_line/commands/substitute.tssrc/cmd_line/commands/substitute.ts 63ms
src/cmd_line/commands/tab.tssrc/cmd_line/commands/tab.ts 33ms
src/cmd_line/commands/wall.tssrc/cmd_line/commands/wall.ts 4ms
src/cmd_line/commands/write.tssrc/cmd_line/commands/write.ts 17ms
src/cmd_line/commands/writequit.tssrc/cmd_line/commands/writequit.ts 11ms
src/cmd_line/commands/writequitall.tssrc/cmd_line/commands/writequitall.ts 21ms
src/cmd_line/lexer.tssrc/cmd_line/lexer.ts 82ms
src/cmd_line/node.tssrc/cmd_line/node.ts 26ms
src/cmd_line/parser.tssrc/cmd_line/parser.ts 15ms
src/cmd_line/scanner.tssrc/cmd_line/scanner.ts 29ms
src/cmd_line/subparser.tssrc/cmd_line/subparser.ts 8ms
src/cmd_line/subparsers/close.tssrc/cmd_line/subparsers/close.ts 4ms
src/cmd_line/subparsers/deleteRange.tssrc/cmd_line/subparsers/deleteRange.ts 3ms
src/cmd_line/subparsers/file.tssrc/cmd_line/subparsers/file.ts 6ms
src/cmd_line/subparsers/nohl.tssrc/cmd_line/subparsers/nohl.ts 2ms
src/cmd_line/subparsers/only.tssrc/cmd_line/subparsers/only.ts 1ms
src/cmd_line/subparsers/quit.tssrc/cmd_line/subparsers/quit.ts 5ms
src/cmd_line/subparsers/read.tssrc/cmd_line/subparsers/read.ts 5ms
src/cmd_line/subparsers/register.tssrc/cmd_line/subparsers/register.ts 7ms
src/cmd_line/subparsers/setoptions.tssrc/cmd_line/subparsers/setoptions.ts 12ms
src/cmd_line/subparsers/sort.tssrc/cmd_line/subparsers/sort.ts 3ms
src/cmd_line/subparsers/substitute.tssrc/cmd_line/subparsers/substitute.ts 38ms
src/cmd_line/subparsers/tab.tssrc/cmd_line/subparsers/tab.ts 12ms
src/cmd_line/subparsers/wall.tssrc/cmd_line/subparsers/wall.ts 4ms
src/cmd_line/subparsers/write.tssrc/cmd_line/subparsers/write.ts 8ms
src/cmd_line/subparsers/writequit.tssrc/cmd_line/subparsers/writequit.ts 6ms
src/cmd_line/subparsers/writequitall.tssrc/cmd_line/subparsers/writequitall.ts 4ms
src/cmd_line/token.tssrc/cmd_line/token.ts 5ms
src/common/matching/matcher.tssrc/common/matching/matcher.ts 41ms
src/common/matching/quoteMatcher.tssrc/common/matching/quoteMatcher.ts 6ms
src/common/matching/tagMatcher.tssrc/common/matching/tagMatcher.ts 12ms
src/common/motion/position.tssrc/common/motion/position.ts 230ms
src/common/motion/range.tssrc/common/motion/range.ts 12ms
src/common/number/numericString.tssrc/common/number/numericString.ts 36ms
src/configuration/configuration.tssrc/configuration/configuration.ts 82ms
src/configuration/decoration.tssrc/configuration/decoration.ts 5ms
src/configuration/notation.tssrc/configuration/notation.ts 11ms
src/configuration/remapper.tssrc/configuration/remapper.ts 36ms
src/editorIdentity.tssrc/editorIdentity.ts 18ms
src/error.tssrc/error.ts 9ms
src/globals.tssrc/globals.ts 2ms
src/history/historyTracker.tssrc/history/historyTracker.ts 134ms
src/mode/mode.tssrc/mode/mode.ts 12ms
src/mode/modeHandler.tssrc/mode/modeHandler.ts 267ms
src/mode/modes.tssrc/mode/modes.ts 16ms
src/neovim/nvimUtil.tssrc/neovim/nvimUtil.ts 31ms
src/register/register.tssrc/register/register.ts 100ms
src/state/globalState.tssrc/state/globalState.ts 7ms
src/state/recordedState.tssrc/state/recordedState.ts 22ms
src/state/replaceState.tssrc/state/replaceState.ts 4ms
src/state/searchState.tssrc/state/searchState.ts 45ms
src/state/vimState.tssrc/state/vimState.ts 18ms
src/statusBar.tssrc/statusBar.ts 5ms
src/taskQueue.tssrc/taskQueue.ts 11ms
src/textEditor.tssrc/textEditor.ts 50ms
src/transformations/transformations.tssrc/transformations/transformations.ts 23ms
src/util.tssrc/util.ts 10ms
test/cmd_line/lexer.test.tstest/cmd_line/lexer.test.ts 47ms
test/cmd_line/parser.test.tstest/cmd_line/parser.test.ts 12ms
test/cmd_line/scanner.test.tstest/cmd_line/scanner.test.ts 23ms
test/cmd_line/sort.test.tstest/cmd_line/sort.test.ts 12ms
test/cmd_line/subparser.close.test.tstest/cmd_line/subparser.close.test.ts 9ms
test/cmd_line/subparser.quit.test.tstest/cmd_line/subparser.quit.test.ts 6ms
test/cmd_line/subparser.substitute.test.tstest/cmd_line/subparser.substitute.test.ts 8ms
test/cmd_line/subparser.test.tstest/cmd_line/subparser.test.ts 24ms
test/cmd_line/substitute.test.tstest/cmd_line/substitute.test.ts 56ms
test/cmd_line/vsplit.test.tstest/cmd_line/vsplit.test.ts 7ms
test/cmd_line/writequit.test.tstest/cmd_line/writequit.test.ts 10ms
test/configuration/notation.test.tstest/configuration/notation.test.ts 5ms
test/error.test.tstest/error.test.ts 4ms
test/extension.test.tstest/extension.test.ts 6ms
test/index.tstest/index.ts 4ms
test/macro.test.tstest/macro.test.ts 22ms
test/mode/modeHandler.test.tstest/mode/modeHandler.test.ts 6ms
test/mode/modeInsert.test.tstest/mode/modeInsert.test.ts 41ms
test/mode/modeNormal.test.tstest/mode/modeNormal.test.ts 288ms
test/mode/modeReplace.test.tstest/mode/modeReplace.test.ts 8ms
test/mode/modeVisual.test.tstest/mode/modeVisual.test.ts 155ms
test/mode/modeVisualBlock.test.tstest/mode/modeVisualBlock.test.ts 22ms
test/mode/modeVisualLine.test.tstest/mode/modeVisualLine.test.ts 63ms
test/mode/normalModeTests/commands.test.tstest/mode/normalModeTests/commands.test.ts 32ms
test/mode/normalModeTests/dot.test.tstest/mode/normalModeTests/dot.test.ts 17ms
test/mode/normalModeTests/motions.test.tstest/mode/normalModeTests/motions.test.ts 86ms
test/motion.test.tstest/motion.test.ts 178ms
test/number/numericString.test.tstest/number/numericString.test.ts 10ms
test/operator/comment.test.tstest/operator/comment.test.ts 10ms
test/operator/put.test.tstest/operator/put.test.ts 5ms
test/plugins/easymotion.test.tstest/plugins/easymotion.test.ts 28ms
test/plugins/surround.test.tstest/plugins/surround.test.ts 17ms
test/register/register.test.tstest/register/register.test.ts 14ms
test/register/repeatableMovement.test.tstest/register/repeatableMovement.test.ts 5ms
test/testSimplifier.tstest/testSimplifier.ts 35ms
test/testUtils.tstest/testUtils.ts 26ms
test/textEditor.test.tstest/textEditor.test.ts 11ms
typings/custom/promised-neovim-client.d.tstypings/custom/promised-neovim-client.d.ts 84ms

@TravisBuddy
Copy link

Travis tests have failed

Hey Arxzin,
Please read the following log in order to understand the failure reason.
It'll be awesome if you fix what's wrong and commit the changes.

Node.js: 8.9.1

git ls-tree -r HEAD --name-only | grep ".*.[t|j]s$" | xargs ./node_modules/prettier/bin/prettier.js --write --print-width 100 --single-quote --trailing-comma es5
extension.tsextension.ts 436ms
gulpfile.jsgulpfile.js 72ms
src/actions/base.tssrc/actions/base.ts 104ms
src/actions/commands/actions.tssrc/actions/commands/actions.ts 1069ms
src/actions/commands/insert.tssrc/actions/commands/insert.ts 138ms
src/actions/include-all.tssrc/actions/include-all.ts 10ms
src/actions/motion.tssrc/actions/motion.ts 388ms
src/actions/operator.tssrc/actions/operator.ts 212ms
src/actions/plugins/easymotion/easymotion.cmd.tssrc/actions/plugins/easymotion/easymotion.cmd.ts 76ms
src/actions/plugins/easymotion/easymotion.tssrc/actions/plugins/easymotion/easymotion.ts 82ms
src/actions/plugins/easymotion/markerGenerator.tssrc/actions/plugins/easymotion/markerGenerator.ts 27ms
src/actions/plugins/easymotion/registerMoveActions.tssrc/actions/plugins/easymotion/registerMoveActions.ts 40ms
src/actions/plugins/easymotion/types.tssrc/actions/plugins/easymotion/types.ts 13ms
src/actions/plugins/surround.tssrc/actions/plugins/surround.ts 130ms
src/actions/textobject.tssrc/actions/textobject.ts 203ms
src/cmd_line/commandLine.tssrc/cmd_line/commandLine.ts 19ms
src/cmd_line/commands/close.tssrc/cmd_line/commands/close.ts 13ms
src/cmd_line/commands/deleteRange.tssrc/cmd_line/commands/deleteRange.ts 42ms
src/cmd_line/commands/file.tssrc/cmd_line/commands/file.ts 32ms
src/cmd_line/commands/nohl.tssrc/cmd_line/commands/nohl.ts 5ms
src/cmd_line/commands/only.tssrc/cmd_line/commands/only.ts 4ms
src/cmd_line/commands/quit.tssrc/cmd_line/commands/quit.ts 12ms
src/cmd_line/commands/read.tssrc/cmd_line/commands/read.ts 25ms
src/cmd_line/commands/register.tssrc/cmd_line/commands/register.ts 19ms
src/cmd_line/commands/setoptions.tssrc/cmd_line/commands/setoptions.ts 49ms
src/cmd_line/commands/sort.tssrc/cmd_line/commands/sort.ts 38ms
src/cmd_line/commands/substitute.tssrc/cmd_line/commands/substitute.ts 33ms
src/cmd_line/commands/tab.tssrc/cmd_line/commands/tab.ts 29ms
src/cmd_line/commands/wall.tssrc/cmd_line/commands/wall.ts 5ms
src/cmd_line/commands/write.tssrc/cmd_line/commands/write.ts 26ms
src/cmd_line/commands/writequit.tssrc/cmd_line/commands/writequit.ts 15ms
src/cmd_line/commands/writequitall.tssrc/cmd_line/commands/writequitall.ts 25ms
src/cmd_line/lexer.tssrc/cmd_line/lexer.ts 51ms
src/cmd_line/node.tssrc/cmd_line/node.ts 30ms
src/cmd_line/parser.tssrc/cmd_line/parser.ts 14ms
src/cmd_line/scanner.tssrc/cmd_line/scanner.ts 25ms
src/cmd_line/subparser.tssrc/cmd_line/subparser.ts 9ms
src/cmd_line/subparsers/close.tssrc/cmd_line/subparsers/close.ts 4ms
src/cmd_line/subparsers/deleteRange.tssrc/cmd_line/subparsers/deleteRange.ts 3ms
src/cmd_line/subparsers/file.tssrc/cmd_line/subparsers/file.ts 12ms
src/cmd_line/subparsers/nohl.tssrc/cmd_line/subparsers/nohl.ts 2ms
src/cmd_line/subparsers/only.tssrc/cmd_line/subparsers/only.ts 1ms
src/cmd_line/subparsers/quit.tssrc/cmd_line/subparsers/quit.ts 4ms
src/cmd_line/subparsers/read.tssrc/cmd_line/subparsers/read.ts 4ms
src/cmd_line/subparsers/register.tssrc/cmd_line/subparsers/register.ts 7ms
src/cmd_line/subparsers/setoptions.tssrc/cmd_line/subparsers/setoptions.ts 14ms
src/cmd_line/subparsers/sort.tssrc/cmd_line/subparsers/sort.ts 3ms
src/cmd_line/subparsers/substitute.tssrc/cmd_line/subparsers/substitute.ts 35ms
src/cmd_line/subparsers/tab.tssrc/cmd_line/subparsers/tab.ts 11ms
src/cmd_line/subparsers/wall.tssrc/cmd_line/subparsers/wall.ts 4ms
src/cmd_line/subparsers/write.tssrc/cmd_line/subparsers/write.ts 8ms
src/cmd_line/subparsers/writequit.tssrc/cmd_line/subparsers/writequit.ts 10ms
src/cmd_line/subparsers/writequitall.tssrc/cmd_line/subparsers/writequitall.ts 4ms
src/cmd_line/token.tssrc/cmd_line/token.ts 4ms
src/common/matching/matcher.tssrc/common/matching/matcher.ts 36ms
src/common/matching/quoteMatcher.tssrc/common/matching/quoteMatcher.ts 7ms
src/common/matching/tagMatcher.tssrc/common/matching/tagMatcher.ts 18ms
src/common/motion/position.tssrc/common/motion/position.ts 230ms
src/common/motion/range.tssrc/common/motion/range.ts 18ms
src/common/number/numericString.tssrc/common/number/numericString.ts 53ms
src/configuration/configuration.tssrc/configuration/configuration.ts 85ms
src/configuration/decoration.tssrc/configuration/decoration.ts 6ms
src/configuration/notation.tssrc/configuration/notation.ts 13ms
src/configuration/remapper.tssrc/configuration/remapper.ts 58ms
src/editorIdentity.tssrc/editorIdentity.ts 9ms
src/error.tssrc/error.ts 10ms
src/globals.tssrc/globals.ts 2ms
src/history/historyTracker.tssrc/history/historyTracker.ts 141ms
src/mode/mode.tssrc/mode/mode.ts 9ms
src/mode/modeHandler.tssrc/mode/modeHandler.ts 282ms
src/mode/modes.tssrc/mode/modes.ts 17ms
src/neovim/nvimUtil.tssrc/neovim/nvimUtil.ts 43ms
src/register/register.tssrc/register/register.ts 98ms
src/state/globalState.tssrc/state/globalState.ts 7ms
src/state/recordedState.tssrc/state/recordedState.ts 18ms
src/state/replaceState.tssrc/state/replaceState.ts 5ms
src/state/searchState.tssrc/state/searchState.ts 41ms
src/state/vimState.tssrc/state/vimState.ts 26ms
src/statusBar.tssrc/statusBar.ts 7ms
src/taskQueue.tssrc/taskQueue.ts 12ms
src/textEditor.tssrc/textEditor.ts 45ms
src/transformations/transformations.tssrc/transformations/transformations.ts 29ms
src/util.tssrc/util.ts 12ms
test/cmd_line/lexer.test.tstest/cmd_line/lexer.test.ts 61ms
test/cmd_line/parser.test.tstest/cmd_line/parser.test.ts 15ms
test/cmd_line/scanner.test.tstest/cmd_line/scanner.test.ts 19ms
test/cmd_line/sort.test.tstest/cmd_line/sort.test.ts 8ms
test/cmd_line/subparser.close.test.tstest/cmd_line/subparser.close.test.ts 6ms
test/cmd_line/subparser.quit.test.tstest/cmd_line/subparser.quit.test.ts 6ms
test/cmd_line/subparser.substitute.test.tstest/cmd_line/subparser.substitute.test.ts 14ms
test/cmd_line/subparser.test.tstest/cmd_line/subparser.test.ts 18ms
test/cmd_line/substitute.test.tstest/cmd_line/substitute.test.ts 57ms
test/cmd_line/vsplit.test.tstest/cmd_line/vsplit.test.ts 10ms
test/cmd_line/writequit.test.tstest/cmd_line/writequit.test.ts 13ms
test/configuration/notation.test.tstest/configuration/notation.test.ts 6ms
test/error.test.tstest/error.test.ts 4ms
test/extension.test.tstest/extension.test.ts 8ms
test/index.tstest/index.ts 4ms
test/macro.test.tstest/macro.test.ts 13ms
test/mode/modeHandler.test.tstest/mode/modeHandler.test.ts 6ms
test/mode/modeInsert.test.tstest/mode/modeInsert.test.ts 52ms
test/mode/modeNormal.test.tstest/mode/modeNormal.test.ts 284ms
test/mode/modeReplace.test.tstest/mode/modeReplace.test.ts 12ms
test/mode/modeVisual.test.tstest/mode/modeVisual.test.ts 170ms
test/mode/modeVisualBlock.test.tstest/mode/modeVisualBlock.test.ts 31ms
test/mode/modeVisualLine.test.tstest/mode/modeVisualLine.test.ts 85ms
test/mode/normalModeTests/commands.test.tstest/mode/normalModeTests/commands.test.ts 41ms
test/mode/normalModeTests/dot.test.tstest/mode/normalModeTests/dot.test.ts 21ms
test/mode/normalModeTests/motions.test.tstest/mode/normalModeTests/motions.test.ts 110ms
test/motion.test.tstest/motion.test.ts 156ms
test/number/numericString.test.tstest/number/numericString.test.ts 4ms
test/operator/comment.test.tstest/operator/comment.test.ts 5ms
test/operator/put.test.tstest/operator/put.test.ts 5ms
test/plugins/easymotion.test.tstest/plugins/easymotion.test.ts 30ms
test/plugins/surround.test.tstest/plugins/surround.test.ts 10ms
test/register/register.test.tstest/register/register.test.ts 15ms
test/register/repeatableMovement.test.tstest/register/repeatableMovement.test.ts 4ms
test/testSimplifier.tstest/testSimplifier.ts 51ms
test/testUtils.tstest/testUtils.ts 20ms
test/textEditor.test.tstest/textEditor.test.ts 11ms
typings/custom/promised-neovim-client.d.tstypings/custom/promised-neovim-client.d.ts 93ms

gulp
npm WARN deprecated [email protected]: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
/home/travis/.nvm/versions/node/v8.9.1/bin/gulp -> /home/travis/.nvm/versions/node/v8.9.1/lib/node_modules/gulp/bin/gulp.js
+ [email protected]
added 274 packages in 5.953s

$ npm install;

> [email protected] postinstall /home/travis/build/VSCodeVim/Vim/node_modules/typings-global
> node ./dist/install.js

@types/node already installed

> [email protected] postinstall /home/travis/build/VSCodeVim/Vim
> node ./node_modules/vscode/bin/install && gulp init

Detected VS Code engine version: ^1.17.0
Found minimal version that qualifies engine range: 1.17.0
Fetching vscode.d.ts from: https://raw.githubusercontent.com/Microsoft/vscode/be377c0faf7574a59f84940f593a6849f12e4de7/src/vs/vscode.d.ts
vscode.d.ts successfully installed!

[12:27:18] Using gulpfile ~/build/VSCodeVim/Vim/gulpfile.js
[12:27:18] Starting 'typings'...
[12:27:19] Finished 'typings' after 887 ms
[12:27:19] Starting 'typings-vscode-definitions'...
[12:27:19] Finished 'typings-vscode-definitions' after 5.75 ms
[12:27:19] Starting 'init'...
[12:27:19] Finished 'init' after 32 μs
added 624 packages in 14.394s

$ git ls-tree -r HEAD --name-only | grep ".*.[t|j]s$" | xargs ./node_modules/prettier/bin/prettier.js --write --print-width 100 --single-quote --trailing-comma es5
extension.tsextension.ts 436ms
gulpfile.jsgulpfile.js 72ms
src/actions/base.tssrc/actions/base.ts 104ms
src/actions/commands/actions.tssrc/actions/commands/actions.ts 1069ms
src/actions/commands/insert.tssrc/actions/commands/insert.ts 138ms
src/actions/include-all.tssrc/actions/include-all.ts 10ms
src/actions/motion.tssrc/actions/motion.ts 388ms
src/actions/operator.tssrc/actions/operator.ts 212ms
src/actions/plugins/easymotion/easymotion.cmd.tssrc/actions/plugins/easymotion/easymotion.cmd.ts 76ms
src/actions/plugins/easymotion/easymotion.tssrc/actions/plugins/easymotion/easymotion.ts 82ms
src/actions/plugins/easymotion/markerGenerator.tssrc/actions/plugins/easymotion/markerGenerator.ts 27ms
src/actions/plugins/easymotion/registerMoveActions.tssrc/actions/plugins/easymotion/registerMoveActions.ts 40ms
src/actions/plugins/easymotion/types.tssrc/actions/plugins/easymotion/types.ts 13ms
src/actions/plugins/surround.tssrc/actions/plugins/surround.ts 130ms
src/actions/textobject.tssrc/actions/textobject.ts 203ms
src/cmd_line/commandLine.tssrc/cmd_line/commandLine.ts 19ms
src/cmd_line/commands/close.tssrc/cmd_line/commands/close.ts 13ms
src/cmd_line/commands/deleteRange.tssrc/cmd_line/commands/deleteRange.ts 42ms
src/cmd_line/commands/file.tssrc/cmd_line/commands/file.ts 32ms
src/cmd_line/commands/nohl.tssrc/cmd_line/commands/nohl.ts 5ms
src/cmd_line/commands/only.tssrc/cmd_line/commands/only.ts 4ms
src/cmd_line/commands/quit.tssrc/cmd_line/commands/quit.ts 12ms
src/cmd_line/commands/read.tssrc/cmd_line/commands/read.ts 25ms
src/cmd_line/commands/register.tssrc/cmd_line/commands/register.ts 19ms
src/cmd_line/commands/setoptions.tssrc/cmd_line/commands/setoptions.ts 49ms
src/cmd_line/commands/sort.tssrc/cmd_line/commands/sort.ts 38ms
src/cmd_line/commands/substitute.tssrc/cmd_line/commands/substitute.ts 33ms
src/cmd_line/commands/tab.tssrc/cmd_line/commands/tab.ts 29ms
src/cmd_line/commands/wall.tssrc/cmd_line/commands/wall.ts 5ms
src/cmd_line/commands/write.tssrc/cmd_line/commands/write.ts 26ms
src/cmd_line/commands/writequit.tssrc/cmd_line/commands/writequit.ts 15ms
src/cmd_line/commands/writequitall.tssrc/cmd_line/commands/writequitall.ts 25ms
src/cmd_line/lexer.tssrc/cmd_line/lexer.ts 51ms
src/cmd_line/node.tssrc/cmd_line/node.ts 30ms
src/cmd_line/parser.tssrc/cmd_line/parser.ts 14ms
src/cmd_line/scanner.tssrc/cmd_line/scanner.ts 25ms
src/cmd_line/subparser.tssrc/cmd_line/subparser.ts 9ms
src/cmd_line/subparsers/close.tssrc/cmd_line/subparsers/close.ts 4ms
src/cmd_line/subparsers/deleteRange.tssrc/cmd_line/subparsers/deleteRange.ts 3ms
src/cmd_line/subparsers/file.tssrc/cmd_line/subparsers/file.ts 12ms
src/cmd_line/subparsers/nohl.tssrc/cmd_line/subparsers/nohl.ts 2ms
src/cmd_line/subparsers/only.tssrc/cmd_line/subparsers/only.ts 1ms
src/cmd_line/subparsers/quit.tssrc/cmd_line/subparsers/quit.ts 4ms
src/cmd_line/subparsers/read.tssrc/cmd_line/subparsers/read.ts 4ms
src/cmd_line/subparsers/register.tssrc/cmd_line/subparsers/register.ts 7ms
src/cmd_line/subparsers/setoptions.tssrc/cmd_line/subparsers/setoptions.ts 14ms
src/cmd_line/subparsers/sort.tssrc/cmd_line/subparsers/sort.ts 3ms
src/cmd_line/subparsers/substitute.tssrc/cmd_line/subparsers/substitute.ts 35ms
src/cmd_line/subparsers/tab.tssrc/cmd_line/subparsers/tab.ts 11ms
src/cmd_line/subparsers/wall.tssrc/cmd_line/subparsers/wall.ts 4ms
src/cmd_line/subparsers/write.tssrc/cmd_line/subparsers/write.ts 8ms
src/cmd_line/subparsers/writequit.tssrc/cmd_line/subparsers/writequit.ts 10ms
src/cmd_line/subparsers/writequitall.tssrc/cmd_line/subparsers/writequitall.ts 4ms
src/cmd_line/token.tssrc/cmd_line/token.ts 4ms
src/common/matching/matcher.tssrc/common/matching/matcher.ts 36ms
src/common/matching/quoteMatcher.tssrc/common/matching/quoteMatcher.ts 7ms
src/common/matching/tagMatcher.tssrc/common/matching/tagMatcher.ts 18ms
src/common/motion/position.tssrc/common/motion/position.ts 230ms
src/common/motion/range.tssrc/common/motion/range.ts 18ms
src/common/number/numericString.tssrc/common/number/numericString.ts 53ms
src/configuration/configuration.tssrc/configuration/configuration.ts 85ms
src/configuration/decoration.tssrc/configuration/decoration.ts 6ms
src/configuration/notation.tssrc/configuration/notation.ts 13ms
src/configuration/remapper.tssrc/configuration/remapper.ts 58ms
src/editorIdentity.tssrc/editorIdentity.ts 9ms
src/error.tssrc/error.ts 10ms
src/globals.tssrc/globals.ts 2ms
src/history/historyTracker.tssrc/history/historyTracker.ts 141ms
src/mode/mode.tssrc/mode/mode.ts 9ms
src/mode/modeHandler.tssrc/mode/modeHandler.ts 282ms
src/mode/modes.tssrc/mode/modes.ts 17ms
src/neovim/nvimUtil.tssrc/neovim/nvimUtil.ts 43ms
src/register/register.tssrc/register/register.ts 98ms
src/state/globalState.tssrc/state/globalState.ts 7ms
src/state/recordedState.tssrc/state/recordedState.ts 18ms
src/state/replaceState.tssrc/state/replaceState.ts 5ms
src/state/searchState.tssrc/state/searchState.ts 41ms
src/state/vimState.tssrc/state/vimState.ts 26ms
src/statusBar.tssrc/statusBar.ts 7ms
src/taskQueue.tssrc/taskQueue.ts 12ms
src/textEditor.tssrc/textEditor.ts 45ms
src/transformations/transformations.tssrc/transformations/transformations.ts 29ms
src/util.tssrc/util.ts 12ms
test/cmd_line/lexer.test.tstest/cmd_line/lexer.test.ts 61ms
test/cmd_line/parser.test.tstest/cmd_line/parser.test.ts 15ms
test/cmd_line/scanner.test.tstest/cmd_line/scanner.test.ts 19ms
test/cmd_line/sort.test.tstest/cmd_line/sort.test.ts 8ms
test/cmd_line/subparser.close.test.tstest/cmd_line/subparser.close.test.ts 6ms
test/cmd_line/subparser.quit.test.tstest/cmd_line/subparser.quit.test.ts 6ms
test/cmd_line/subparser.substitute.test.tstest/cmd_line/subparser.substitute.test.ts 14ms
test/cmd_line/subparser.test.tstest/cmd_line/subparser.test.ts 18ms
test/cmd_line/substitute.test.tstest/cmd_line/substitute.test.ts 57ms
test/cmd_line/vsplit.test.tstest/cmd_line/vsplit.test.ts 10ms
test/cmd_line/writequit.test.tstest/cmd_line/writequit.test.ts 13ms
test/configuration/notation.test.tstest/configuration/notation.test.ts 6ms
test/error.test.tstest/error.test.ts 4ms
test/extension.test.tstest/extension.test.ts 8ms
test/index.tstest/index.ts 4ms
test/macro.test.tstest/macro.test.ts 13ms
test/mode/modeHandler.test.tstest/mode/modeHandler.test.ts 6ms
test/mode/modeInsert.test.tstest/mode/modeInsert.test.ts 52ms
test/mode/modeNormal.test.tstest/mode/modeNormal.test.ts 284ms
test/mode/modeReplace.test.tstest/mode/modeReplace.test.ts 12ms
test/mode/modeVisual.test.tstest/mode/modeVisual.test.ts 170ms
test/mode/modeVisualBlock.test.tstest/mode/modeVisualBlock.test.ts 31ms
test/mode/modeVisualLine.test.tstest/mode/modeVisualLine.test.ts 85ms
test/mode/normalModeTests/commands.test.tstest/mode/normalModeTests/commands.test.ts 41ms
test/mode/normalModeTests/dot.test.tstest/mode/normalModeTests/dot.test.ts 21ms
test/mode/normalModeTests/motions.test.tstest/mode/normalModeTests/motions.test.ts 110ms
test/motion.test.tstest/motion.test.ts 156ms
test/number/numericString.test.tstest/number/numericString.test.ts 4ms
test/operator/comment.test.tstest/operator/comment.test.ts 5ms
test/operator/put.test.tstest/operator/put.test.ts 5ms
test/plugins/easymotion.test.tstest/plugins/easymotion.test.ts 30ms
test/plugins/surround.test.tstest/plugins/surround.test.ts 10ms
test/register/register.test.tstest/register/register.test.ts 15ms
test/register/repeatableMovement.test.tstest/register/repeatableMovement.test.ts 4ms
test/testSimplifier.tstest/testSimplifier.ts 51ms
test/testUtils.tstest/testUtils.ts 20ms
test/textEditor.test.tstest/textEditor.test.ts 11ms
typings/custom/promised-neovim-client.d.tstypings/custom/promised-neovim-client.d.ts 93ms

@ghost ghost changed the title C-d check if it is explicitly defined first else use useCtrlKeys in order to be remapped to D-d make <C-d> disabled by default unless been set true Jan 12, 2018
@ghost ghost changed the title make <C-d> disabled by default unless been set true make <C-d>(page down) disabled by default unless been set true Jan 12, 2018
@ghost ghost changed the title make <C-d>(page down) disabled by default unless been set true make <C-d> from vim disabled by default unless been set true Jan 12, 2018
@ghost ghost changed the title make <C-d> from vim disabled by default unless been set true make <C-d> from vim disabled by default unless being set true Jan 12, 2018
@ghost
Copy link
Author

ghost commented Jan 12, 2018

Updated PR.

@jpoon jpoon changed the title make <C-d> from vim disabled by default unless being set true fix: <C-d> remapping disabled by default. functionality controlled by "handleKeys" Jan 12, 2018
@jpoon jpoon merged commit 3424333 into VSCodeVim:master Jan 13, 2018
@jpoon
Copy link
Member

jpoon commented Jan 13, 2018

Thanks @arxzin

@GuoQichen
Copy link

GuoQichen commented Sep 8, 2018

@jpoon hi, How could I set handleKeys to undefined ? I want use VS Code default behavior in C-d

@lzfee0227
Copy link

Try to use the trick instead before resolved:

  1. useCtrlKeys": false
  2. Move cursor to target text
  3. Set vim to normal mode with esc
  4. Select text with your mouse / touch pad
  5. Use cmd / ctrl + d of vscode
  6. Set vim to insert mode with i
  7. move your cursor, it may works with multiple cursors (not multiple selections)

@YinanZhaoXometry
Copy link

1.(Use ⌘+K ⌘+S) Open Keyboard Shortcuts,
2.Then open the JSON File,
3.Search for 'cmd+d' keyword, comment out the code block:
//{
// "key": "cmd+d",
//"command": "-extension.vim_cmd+d",
//"when": "editorTextFocus && vim.active && vim.use<D-d> && !inDebugRepl"
//}

this works for me perfectly, hope anyone see this solve the problem i have.
p.s. I'm on a Mac.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants