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

Allowing user to selectively disable some key combos #1425

Merged
merged 9 commits into from
Mar 25, 2017
Merged

Allowing user to selectively disable some key combos #1425

merged 9 commits into from
Mar 25, 2017

Conversation

xconverge
Copy link
Member

@xconverge xconverge commented Mar 25, 2017

I like this. PR for #1424

example config option that may be handy on windows for some

 "vim.handleKeys":{
        "<C-a>": false,
        "<C-f>": false
    },

I would like to have it all in configuration.ts so that it can happen without a vscode restart so that will be next. Then trying to clean it up some more and make sure all of our keys in package.json are handled (only modifier key combos I think will be part of this)

package.json Outdated
},
{
"key": "ctrl+p",
"command": "extension.vim_ctrl+p",
"when": "suggestWidgetVisible && vim.useCtrlKeys"
"when": "suggestWidgetVisible && vim.use<C-p> vim.useCtrlKeys"
Copy link
Member Author

@xconverge xconverge Mar 25, 2017

Choose a reason for hiding this comment

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

oops

package.json Outdated
},
{
"key": "ctrl+n",
"command": "extension.vim_ctrl+n",
"when": "suggestWidgetVisible && vim.useCtrlKeys"
"when": "suggestWidgetVisible && vim.use<C-n> vim.useCtrlKeys"
Copy link
Member Author

@xconverge xconverge Mar 25, 2017

Choose a reason for hiding this comment

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

oops

@xconverge xconverge changed the title [WIP] Allowing user to selectively disable some key combos Allowing user to selectively disable some key combos Mar 25, 2017
@xconverge xconverge mentioned this pull request Mar 25, 2017
@johnfn
Copy link
Member

johnfn commented Mar 25, 2017

This LGTM. It's really interesting that properties in package.json can include < and > characters.

@xconverge
Copy link
Member Author

Yea that felt a bit crazy, but if it works it works. I figured it wasn't any worse than vim.useCtrl+k etc, and then atleast the nomenclature is the same throughout our remappings etc

@xconverge xconverge merged commit 2e3ead5 into VSCodeVim:master Mar 25, 2017
@xconverge xconverge deleted the delegate-keys-config branch March 25, 2017 16:33
This pull request was closed.
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.

2 participants