-
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
shift+escape broken in latest Firefox and chrome #73
Comments
Thanks for reporting! It would be huge bummer if that is non-configurable as it would require retraining muscle memory. Fortunately this is already configurable on our side. If you go to the json settings editor for keyboard shortcuts then you can define a new shortcut for leaving vim mode to go into notebook command mode. For example:
will make for reference the extension defines this here: jupyterlab-vim/schema/plugin.json Lines 108 to 112 in a17e9e0
|
More details on customizing keymaps here: https://github.com/jupyterlab-contrib/jupyterlab-vim/blob/master/modify-keybinds.md |
Thanks very much for your quick answer @ianhi. In any case setting ctrl+escape as as you suggest, also works fine... thanks again, this "bug" can be closed. Minor point: you have a typo in your code snippet: "Crtl Escape" should read "Ctrl Escape". |
Thanks - fixed. There is also the proposed using of |
In fairness to firefox |
@ianhi Since Shift+Esc is now the task/process manager shortcut for both Firefox and Chrome (I don't know when it was introduced in Chrome), I'm wondering if the default jupyterlab-vim shortcut for entering command mode should be changed to something else. Thoughts? EDIT: Ctrl+Esc in Windows brings up the Start menu, so that doesn't seem like a good default either. The other combinations of Esc on Windows correspond to arrangement of windows. I'm out of ideas for now. |
Interestingly I've found in firefox that when im in normal mode
Given this I think we cannot use combos of pinging a few people who's names I've seen several times. Still a shame that there's no general way to query the community of users for this. |
Well, personally I see no problem here. Please share, why you need to exit vim mode completely, I am curious |
Well, I constantly switch between jupyter and vim mode, so I use Since
I navigate around the notebook in jupyter mode. |
oooh that sounds like it would plausibly fix things |
Confirmed that adding the command mode selector to the shortcut (see below) would override the task/process manager shortcut. It probably shouldn't be the default though. {
"command": "notebook:enter-command-mode",
"keys": [
"Shift Escape"
],
"selector": ".jp-Notebook.jp-mod-commandMode",
"args": {},
} |
Why not? Seems to me that this solves a problem popping up for lots of users and doesn't harm anything when not fixing that (aside from blockign the task-manager I guess) |
I would make it the default. There have been wishes for firefox to make their shortcuts customisable to not interfere with other programs' shortcuts, but from their perspective I can see them saying: "If you want to use that shortcut for something else, you have the right to overwrite it." (which we have already done in vim mode...) If people still want to access their browser manager, simply open a new tab and press |
I also second the above comments - it would be great to have this workaround implemented as a default. As nicely pointed out by @lukashergt it would still be very straightforward to access the browser manager in a simple way with the shortcut that the firefox devs put in. |
PR #100 please give it a test: |
this is release in 4.0.2 on pypi and likely on conda-forge tomorrow |
btw, guys, how enter VIM mode back after I exit it? It looks like it left only inside cells |
I'm not sure I understand, @banderlog. I use jupyter mode to navigate between cells. I then use |
@lukashergt I am telling about state when vim bindings for Cut/Copy/Paste Cell work. Because I have weird situation when vim bindings inside cells work, but vim bindings for cell manipulation not( |
Might be better to open an issue and be very specific about what doesn't work. I think what you are referring to is what I call jupyter mode, where I navigate between cells with |
The latest Firefox (>= 108.0) implements a new functionality where shift+escape now brings up their process manager. This breaks jupyterlab-vim (i.e. pressing one two many times, triggers Firefox's binding)
I commented on a bug report with them (see here: https://bugzilla.mozilla.org/show_bug.cgi?id=1806272) - it seems like this new "feature" also breaks how discord works. I am not sure if anything will be done about it from Mozilla's side, so hoping there is maybe an easy workaround directly in jupyterlab-vim?
thanks
The text was updated successfully, but these errors were encountered: