Closed JobJob closed 8 years ago
https://github.com/lambdalisue/jupyter-vim-binding/blob/master/vim_binding.js#L452-L457
The code above set default settings and Jupyter uses that settings to create a new cell so it should work for new one as well. Which version do you use?
A modified 0.1.0
Anyway, I don't really have the version of the code that doesn't work. So I think I will just close the issue if that's how it should work. Cheers for your help.
Ok looking at what you pointed out, I get what I was doing wrong, I wasn't changing the defaults in my changes, was just changing the options for existing cells. Thanks!
I'm not 100% sure about this, but is it possible the extension changes are not being loaded correctly for cells created after the notebook is loaded? e.g. when you execute a cell and insert a cell after with alt-enter
https://github.com/lambdalisue/jupyter-vim-binding/blob/master/vim_binding.js#L459-L469 applies the options to existing cells, but how are they applied to new cells?
I noticed this problem when some indentation changes I made by modifying this extension weren't working on new cells created. The following changes fixed that issue for me: