-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
4.0.0 lacks selectable key map #14599
Comments
Thank you for opening your first issue in this project! Engagement like this is essential for open source projects! 🤗 |
Thank you for highlighting this.
This links to CodeMirror 5 documentation. JupyterLab 4 uses CodeMirror 6, which does not ship alternative keymaps, but extensions can still define custom keymaps. Here are three CodeMirror 6 extensions from replit defining keymaps which we could use:
I believe that in CodeMirror 6 migration follow-up the |
By the way, it would be good to know whether the JL team prefers to or will likely add keymaps back to JL 4 as a core feature. I think the |
We discussed this on the team meeting and there were no voices against including the key maps in core. Especially lack of codemirror-vim keymap seems to be a regression so this is open for PRs. |
So the prior behavior i.e. jlab3 was core had selectable keymaps for the file editor, but not for notebooks. |
I did mention that it was specific to file editor. In JL 4 it is currently difficult to add document-type (notebook vs file editor)-specific extension (I am hitting this with lsp now) but in principle it is possible. Would you see it as beneficial to have it for both file editor and notebook? |
I would definitely find it useful to have alternative (vi) keybindings available in the notebooks. I don't use the file editor, but have gotten very used to having the vi keybindings available in as many text editing contexts as possible (VS Code, Jupyter, and vim itself of course). Without the alternative keybindings I'll probably give working with notebooks in VS Code a try, but I would prefer to continue using the open source interface. |
The notebook is really the critical part from my perspective. The fileeditor at the same time would be a nice bonus. Historically jlab core provided vim only in the fileeditor, which ended up being a source of some user confusion. |
jupyterlab-vim already supports JupyterLab 4.0: https://github.com/jupyterlab-contrib/jupyterlab-vim/releases/tag/v4.0.3 |
Problem
4.0.0 appears to lack the selectable key map feature to allow a user to choose vim/emacs/sublime mode for cell editing. However, in the Jupyterlab documentation on the interface for version latest it does appear as a feature.
Proposed Solution
I understand there has a been a change to codemirror and that codemirror supports vim keymaps. Can we get this feature on the roadmap for Jupyterlab? Or alternatively, is there a way for users to add this?
Thank you so much.
Additional context
The text was updated successfully, but these errors were encountered: