lambdalisue / jupyter-vim-binding

Jupyter meets Vim. Vimmer will fall in love.
2.1k stars 136 forks source link

When scrolling the cell focus doesn't follow? #99

Open Vinh-CHUC opened 7 years ago

Vinh-CHUC commented 7 years ago

Firstly thank you so much for working on this!! I love Vim and just started to use Jupyter, very happy that Vim follows me along

OS X 10.12.4 Google Chrome 58.0.3029.110 Jupyter 4.3.1

When I try to scroll with either ^E, ^D, or ^U, ^D, (in Vim mode) the cell focus stays where it is before I started to scroll. Which is a bit inconvenient since after I've scrolled, I'm forced to use my mouse to focus to one of the cells I'm then seeing If I use J,K it would basically bring me back to where the cell focus is, ie where I started to scroll from

Many thanks

lambdalisue commented 7 years ago

It is a bit difficult issue. ^E is used to scroll and j is used to move the cursor.

I know that Vim move cursor on ^E or whatever but to make that compatible on this plugin, we have to guess which cell should we be in. Currently this plugin does not provide such feature...

PR is welcome :smile:

Vinh-CHUC commented 7 years ago

I might have a look :)