jwkvam / jupyterlab-vim

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

Macros do not interact nicely with bracket closing. #64

Open tduberne opened 6 years ago

tduberne commented 6 years ago

How to reproduce:

in a new cell, starting in command mode, type:

qqistr('abc<ESC>q

The cell displays

str('abc')

And you now have a macro associated to q, corresponding to typing str('abc.

Now, in command mode, type

o@q

to execute the macro on a new line. The new line should be identical, but reads

str()''abc

I unfortunately do not have enough time nor TypeScript experience to propose a pull request. But thanks for the extension!

ah- commented 6 years ago

This sounds related: https://github.com/codemirror/CodeMirror/issues/4086