-
Notifications
You must be signed in to change notification settings - Fork 5.1k
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
Toggle between cell types using a single key #7596
Comments
I feel this pain often. It looks like a "Cycle Cell Type" command would be a reasonable addition. I would argue that assigning a shortcut by default is a more involved decision, but if Notebook ship a command, users could set a shortcut themselves for this command. |
@zzra Thanks for creating this issue. Since the enhancement proposal for a "Cycle Cell Type" command is best tracked on the JupyterLab repo, I made an issue there to track it (if you have any more feedback, please follow up there). If the enhancement is completed, it will then be available to all JupyterLab and Notebook users :) If you need additional changes for the VIM extension, please follow up with the extension authors. Thanks! |
Hi everyone. Thank you for creating and/or looking into this issue. Taking in account that this issue is now tracked in newly created issue jupyterlab/jupyterlab#17366, should this issue be closed? |
Closing seems fine to me since its triaged. |
Problem
I am consistently frustrated when using Jupyter Notebook in VIM mode due to accidentally changing the cell type and becoming stuck in the new type. Since changing from cell type to cell type is dependent on 3 keys I cannot simple repeat what I've done to change the cell type. Instead I am required to find the obscure new shortcut to do so and only that shortcut will change me to the type I want. Additionally there are extra ways to set a cell to markdown using keys '1' ... '6' which are equally frustrating given the context of a specific shortcut to switch to code.
I would greatly appreciate it if one key rotated through the cell types.
Proposed Solution
Create a function that switches cell type to the next in order.
Example:
This can be accomplished without a dedicated key to prevent regular users from being confused by the new shortcut. Instead it will be found by confused uses when searching 'Keyboard Shortcuts' for 'Code', 'Cell', 'Type', 'Markdown', 'Raw', 'Change' or any other reasonable query/combination for changing type.
Or use a key like 'W' which hasn't been used yet.
Additional context
What this solves: simplifies user onboarding by reducing cognitive load to get started.
The text was updated successfully, but these errors were encountered: