-
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
gg
and G
no longer working in jupyterlab 4.1.0
#134
gg
and G
no longer working in jupyterlab 4.1.0
#134
Comments
edit: I was able to replicate i misread the issue at first I was not able to replicate on: python : 3.12.1 Was this in a totally fresh environment? |
Huh, weird.
Yes, new virtualenv... |
I tried again with a fresh virtualenv of python version 3.11.5. Same thing, |
I can confirm, and for me other shortcuts stopped working in 4.1.0 as well e.g,. shift+O. |
ahhh sorry i misread the original issue, i thought you were talking about inside of a cell. I agree I see the same |
ahhh I suspect we need to update the CSS selectors: https://jupyterlab.readthedocs.io/en/latest/extension/extension_migration.html#change-of-notebook-focus-handling-impacting-command-mode-shortcut-selectors |
Yes, but JupyterLab 4.1 was supposed to handle the transition by transparent substitution in the background. I must have missed some selectors, sorry 🤦 |
So jupyterlab/jupyterlab#15639 should have caught jupyterlab-vim/schema/plugin.json Lines 173 to 177 in fc42ef6
|
Ok, the selector substitution rules are good but only first shortcut gets fixed (for me Y Y): instead there is a bug in the logic in: if (
oldSelector.includes(change.old) &&
!selectorsAlreadyWarnedAbout.has(oldSelector)
) {
newSelector = oldSelector.replace(change.old, change.new);
selectorDeprecationWarnings.add(
`"${change.old}" was replaced with "${change.new}" in ${change.versionDeprecated} (present in "${oldSelector}")`
);
selectorsAlreadyWarnedAbout.add(oldSelector);
}
|
This is getting fixed in:
reviews for both pull requests would be greatly appreciated! |
I can confirm that with #135 However, it seems the view does not jump. For example, if I am at the bottom of the notebook viewing the bottom cell which is currently highlighted, and I then press |
Thank you @ianhi for the quick release and @lukashergt for testing. The scroller node has also changed in lab 4.1 (https://jupyterlab.readthedocs.io/en/latest/extension/extension_migration.html#css-class-name-change-in-the-windowedlist-superclass-of-staticnotebook), and instead of using the public API of notebook, this extension was doing scrolling manually: jupyterlab-vim/src/labCommands.ts Lines 248 to 253 in a6520ef
I can take a look tomorrow. |
ahhh sorry I didn't catch this. I did not make enough cells in my test notebook to trigger scrolling. I will add that to my mental checklist of things to check. |
Wow, completely resolved as far as I can tell, thanks for these quick fixes @krassowski, @ianhi! |
Description
After updating from
jupyterlab 4.0.11
tojupyterlab 4.1.0
, the commandsgg
andG
to navigate to the top/bottom cell of the notebook in jupyter mode no longer seem to work. Going back tojupyterlab 4.0.11
bothgg
andG
work as expected.Can anybody else confirm this?
Context
The text was updated successfully, but these errors were encountered: