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

Timeout in Keyboard Shortcuts Maps

Open caticoa3 opened this issue 1 year ago • 1 comments

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.

  • Python package version: 3.12.2

  • Extension version: jupyterlab_vim | 4.1.3 | pyhd8ed1ab_0 | conda-forge

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)

  • MacOS Monterey 12.7.4

caticoa3 avatar Aug 27 '24 05:08 caticoa3

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?

firai avatar Aug 31 '24 04:08 firai

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

caticoa3 avatar Oct 22 '24 05:10 caticoa3

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

caticoa3 avatar Oct 24 '24 16:10 caticoa3