jupyterlab-contrib / jupyterlab-vim

Vim notebook cell bindings for JupyterLab
https://jupyterlab-contrib.github.io/jupyterlab-vim.html
MIT License
685 stars 43 forks source link

Timeout in Keyboard Shortcuts Maps #145

Closed caticoa3 closed 1 week ago

caticoa3 commented 2 months ago

Is it possible to have a two keystroke mapping, e.g. kj for esc have a time out limit between the first and second keystroke? For example if I would like to type a 'k' in insert mode I have to type two consecutive k's ('k' 'k') because the first 'k' is waiting for a second keystroke.

It would be nice if a time out was set so that the first key stroke...'k' in the above example would time out and a k would be typed when the second keystroke is not entered.

JupyterLab v4.0.11 jupyterlab-jupytext v1.4.3 enabled OK (python, jupytext) @jupyter-notebook/lab-extension v7.0.8 enabled OK @axlair/jupyterlab_vim v4.1.3 enabled OK (python, jupyterlab_vim) @jupyter-widgets/jupyterlab-manager v5.0.11 enabled OK (python, jupyterlab_widgets)

firai commented 2 months ago

Thanks for suggesting. I think this would need to be implemented upstream in replit/codemirror-vim, which provides most of the vim functionality for this extension. Can you please file the proposal there?

caticoa3 commented 2 weeks ago

Thanks for the reply. Sure thing: crossposted to replit/codemirror issues

caticoa3 commented 1 week ago

Closing this. For anyone else running into this issue please see the solution in code mirror thread