jwkvam / jupyterlab-vim

:neckbeard: Vim notebook cell bindings for JupyterLab
MIT License
973 stars 73 forks source link

holding down 'jkhl' keys but no repeat #62

Closed yelled1 closed 6 years ago

yelled1 commented 6 years ago

I am using Ubuntu 16.04 as host machine & Chome on Mac OS High Sierra as the client The simple issue is that holding down 'jkhl' inside the cell does not repeat the keystroke -> 'j' only goes down one character rather than continue to move down the line until I take my finger off. So, in order to move 5 lines, I need to hit 'j' times 5 -> jjjjj Did I set something wrong? Thanks, (host): Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.15.0-1017-gcp x86_64) (start jupyter) jupyter lab --ip=0.0.0.0 --no-browser --port=XXXX http://datasci.mooo.com:8999/lab jupyter labextension list JupyterLab v0.34.2 Known labextensions: app dir: /home/hoon/.local/share/virtualenvs/simulation-RVBo82bs/share/jupyter/lab @jupyterlab/plotly-extension v0.17.1 enabled OK @jupyterlab/shortcutui v0.1.4 enabled OK jupyterlab_vim v0.9.0 enabled OK

jwkvam commented 6 years ago

Can you try running this in a shell:

defaults write -g ApplePressAndHoldEnabled -bool false

Restart chrome and try again?

A reference: https://github.com/codemirror/CodeMirror/issues/1849

This could be a nice thing to add to the wiki.

yelled1 commented 6 years ago

Think ur right. I just tried it on my Ubuntu machine as the client. The repeat worked beautifully. If I find the solution work or find another solution, then I will respond. Thank u much,

BTW: I've been using Ubuntu for a decade but new to MacOS. I thought it was supposed to be less #@$(*# prone, but finding it's not.

yelled1 commented 6 years ago

defaults write -g ApplePressAndHoldEnabled -bool false worked! Thank u bunch

jhwang7628 commented 1 year ago

This saved my life. Thank you @jwkvam!