jupyterlab-vim icon indicating copy to clipboard operation
jupyterlab-vim copied to clipboard

Remap "hjkl"

Open jbirnick opened this issue 4 years ago • 2 comments

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!

jbirnick avatar May 17 '20 21:05 jbirnick

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.

axelfahy avatar May 19 '20 09:05 axelfahy

I think we talked about this on the jupyterlab issue https://github.com/jupyterlab/jupyterlab/issues/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

ianhi avatar Jul 23 '20 01:07 ianhi