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

Remap "hjkl" #7

Open
jbirnick opened this issue May 17, 2020 · 2 comments
Open

Remap "hjkl" #7

jbirnick opened this issue May 17, 2020 · 2 comments
Labels
enhancement New feature or request

Comments

@jbirnick
Copy link

jbirnick commented May 17, 2020

Hi,
first of all thanks for the great extension!

In my normal vim I have remapped "hkjl" to "jkl;". How can I do this in jupyterlab?
And if it is not possible in your extension, do you know which files of jupyter I can modify to get this?

Thanks!

@axelfahy
Copy link
Collaborator

Some commands are defined inside the src/index.ts file.
However, basic moves come from CodeMirror (https://codemirror.net/demo/vim.html)
In this file: https://codemirror.net/keymap/vim.js, there are the default key mappings.
You could try to remap them.

@ianhi
Copy link
Collaborator

ianhi commented Jul 23, 2020

I think we talked about this on the jupyterlab issue jupyterlab/jupyterlab#8436 but for any future finders of this issue I too ran into this and have made an extension that allows remappings using the jupyterlab settings editor: https://github.com/ianhi/jupyterlab-vimrc

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

No branches or pull requests

4 participants