lambdalisue / jupyter-vim-binding

Jupyter meets Vim. Vimmer will fall in love.
2.1k stars 136 forks source link

How do I override the 'command' shortcuts? #151

Closed dycw closed 4 years ago

dycw commented 4 years ago

Summary

The customization section gives examples, which if I refer to shortcuts.js, appear to be edit shortcuts. I would like to know how to customize the command shortcuts.

Environment

What you have done to solve the issue

I have explored, by trial-and-error, a variety of key bindings like

km.edit_shortcuts.add_shortcut("Ctrl-e", "vim-binding:select-next-cell", true);
km.edit_shortcuts.add_shortcut("Ctrl-i", "vim-binding:select-previous-cell", true);

but these are all for edit mode only.

dycw commented 4 years ago

Think I missed the part where you need the extension to do exactly what I'm asking for.