Skip to content
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

ENH: split cell at cursor #2741

Closed
8 tasks
westurner opened this issue Apr 7, 2022 · 2 comments
Closed
8 tasks

ENH: split cell at cursor #2741

westurner opened this issue Apr 7, 2022 · 2 comments
Labels

Comments

@westurner
Copy link

westurner commented Apr 7, 2022

Is your feature request related to a problem? Please describe.

STORY: Users can split the current cell at the current cursor position, in order to refactor into more notebook cells.

Describe the solution you'd like

  • ENH: Create a keyboard shortcut for splitting the current cell at the cursor
    • ENH: cell IDs change upon copying, pasting, splitting
      • DOC: JEP #
    • UBY: decide on a keyboard shortcut
      • e.g. JupyterLab has 'Ctrl-Shift-Minus',
        which is going to be muscle memory for people coming from that tool,
        so maybe Ctrl-Shfit-Minus for jlab compatibility, and, though:
      • 'Ctrl-Shift-Minus' collides with (is it Global or Local) font size decrease on Chromebooks, so there needs to be another keyboard shortcut to split cell
        • ENH,UBY: jlab: that should/could be added back to jlab, too

Describe alternatives you've considered
Copy and paste to a new cell, instead of splitting at cursor:

  • Shift + PageDown # PageDown = Fn + Down arrow # Select all
  • Ctrl-X # Cut the rest of the cell
  • Create a new cell in colab
  • Ctrl-V # Paste the rest of the previous cell

Additional context

@craigcitro
Copy link
Contributor

Note that this already works: ctrl-m - (ctrl-m followed by -) will split the current cell.

@westurner
Copy link
Author

westurner commented Apr 7, 2022

  • Colab: Add split cell to command palette, menus

Why does it only work in emacs pinky mode?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants