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

Support custom Esc mapping from dconf #226

Closed
Ddedalus opened this issue Jul 20, 2018 · 1 comment
Closed

Support custom Esc mapping from dconf #226

Ddedalus opened this issue Jul 20, 2018 · 1 comment
Labels

Comments

@Ddedalus
Copy link
Contributor

Hi, thanks for a great extension!
I'm running Ubuntu 18.04 and found it useful in VIM to map Escape to CapsLock system wide. One does so by modifying dconf:
/org/gnome/desktop/input-sources/xkb-options : 'caps:escape'
This works fine in other apps like RStudio but not in VSCode. Do you have any idea whether it can be supported either through your extension or through the editor config?

Any clues on this appreciated.

@aioutecism
Copy link
Owner

Hi @Ddedalus,

Thanks for using amVim.

I think this is rather a VSCode issue. The best you can do is to add a keybinding like this:

{ "key": "capslock", "command": "amVim.escape", "when": "editorTextFocus" }

But this still triggers CapsLock.

See microsoft/vscode#23991 for more.

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

No branches or pull requests

2 participants