-
Notifications
You must be signed in to change notification settings - Fork 44
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Entering vi(1) commands in JupyterLab notebooks causes scroll to bottom of cell ... #144
Comments
BUMP. Can anyone take a look at this please? Thank you. |
Thanks for reporting. As suggested in the original issue you filed, have you confirmed whether it's an issue upstream with replit/codemirror-vim, using their sandbox at https://raw.githack.com/replit/codemirror-vim/master/dev/web-demo.html? |
Hi @firai Thank you for replying. I visited the sandbox URL you provided above, and the |
After You said that "the behavior [used] to be a...one-line editor at the bottom of the display as you typed [an ex] command, then it would disappear and you were taken back to your cursor. It no longer does that." Are you saying that you're also seeing a problem with the ex prompt, or just the scrolling issue? To make sure we're talking about the same issue, would it be possible for you to record a GIF of the problem you're seeing? |
@firai After reading your reply, let me clarify what I wrote (because I mis-remembered how it used to work until I saw the sandbox today ). 😊 When things worked for me, it worked just like the sandbox does. That is, when typing Now, for some odd reason, my cursor jumps to the bottom of the cell when typing But, scrolling to the bottom of a cell is the wrong behavior. As with the sandbox, it shouldn't seek to scroll to the bottom of a cell under any circumstance, but that's what mine is doing now. Each time it does this, I must mouse-scroll back up to my edit location. Annoying because I like to save early & often. LoL 😄 I hope that helps. And thank you. |
PS: I noticed the GIF request too late. Let me know if you still need it after my reply, and I'll be happy to furnish one. |
@firai What would be do without GIF animations. 😊 Thank your for the comprehensive reply. In your sandbox trials, can you Although difficult to spot, when I issued the That behavior would be good. It's not |
Unless you're talking about different JupyterLab behavior than what I have shown above (again, recording a GIF would help here), it doesn't seem like turning on the status bar would help here. It seems like you're still looking at the sandbox behavior when the CM editor is shorter than the visible page, and the scrollbar is inside the CM editor. In order to be comparable to the JupyterLab behavior, you need to resize the CM editor in the sandbox to be taller than the page (using the drag control at the bottom right of the CM editor), such that the bottom of the CM editor is below the visible page, and the page has a scrollbar outside of the CM editor itself. EDIT: By the way, obviously, the other solution to this problem is to make sure you don't have very tall cells, such that the bottom of the input area can be visible at the same time as the line where the cursor is. |
being annoyed by the same issue here. I'm now trying to have myself used to "ctrl-s" instead of "w" even in the vim mode. |
Hello Friends:
I originally posted the following here, and they suggested posting this issue here.
I'm running the below library versions in a
Python
virtual environment.My JupyterLab Notebooks use vim(1) emulation.
I don't know when this problem started, but every time I perform, say, a w! editor operation to save changes, the Notebook scrolls to the bottom of the current input cell, but doesn't go back up to the cursor input location so that I can continue working. I have to scroll back up each time and find where I was.
The behavior use to be a convenient and quick appearance of the ed(1) one-line editor at the bottom of the display as you typed a vi(1) command, then it would disappear and you were taken back to your cursor. It no longer does that.
Can anyone suggest what to check for and/or how to fix this?
Thank you in advance! (See below).
The text was updated successfully, but these errors were encountered: