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

Keyboard shortcut for multiline cursor #4761

Open
detly opened this issue Jul 12, 2019 · 17 comments
Open

Keyboard shortcut for multiline cursor #4761

detly opened this issue Jul 12, 2019 · 17 comments
Milestone

Comments

@detly
Copy link

detly commented Jul 12, 2019

Multiline editing is currently possible by holding Alt and dragging the mouse to create a multiline cursor. I find this slow and imprecise. Could we also please have a keyboard shortcut to do this? For example, Sublime Text 3 uses Shift+Alt+(up or down arrows). I don't know what's possible with a browser based notebook though.

This is mentioned in a comment on issue #2527 but not responded to.

@joshuadanpeterson
Copy link

Has any work been done on this?

@mertyertugrul
Copy link

Why there is no shortcut for this?

@jsr-p
Copy link

jsr-p commented Jun 19, 2020

bump

@vaknin
Copy link

vaknin commented Jun 20, 2020

That would be incredibly useful!

@kirilzilla
Copy link

#2527 its CMD+Click on macOS.

@laughingrice
Copy link

#2527 its CMD+Click on macOS.

comment was for a keyboard shortcut, not a mouse shortcut

@nickmccullum
Copy link

Has there been any progress on this?

@aldanor
Copy link

aldanor commented Sep 5, 2020

If you need a multiline cursor for 20 lines, clicking to set up precise locations takes longer than not using the multiline cursor at all. Would it be possible to have a keyboard shortcut for it?

@rsayn
Copy link

rsayn commented Nov 26, 2020

Bumping this, it's a must-have feature in my opinion. Pressing Alt + up/down arrow to multiline edit is something I'm always lacking when writing code in Jupyter notebooks.
As a developer I often find myself using Google Colab for smaller tasks just because of their awesome code editor and auto-completion.
I feel that the two features that vanilla notebooks are missing right now are developer-level key bindings like the one proposed here, and an IntelliSense-like autocompletion similar to the ones in VS Code and Colab.

@tartakovsky
Copy link

tartakovsky commented Jan 8, 2021

I'll join the party. Missing this feature a lot, one of my most-used features in Jetbrains IDEs.

Note: I specifically mean the ability to create several cursors using only keyboard, e.g. CMD+ALT+Up/Down, without using the mouse.

@matuusu
Copy link

matuusu commented Mar 5, 2021

If you need a multiline cursor for 20 lines, clicking to set up precise locations takes longer than not using the multiline cursor at all. Would it be possible to have a keyboard shortcut for it?

I know this is not a solution to keyboard shortcut request, but meanwhile it is hopefully implemented, you can help yourself by using ctrl+alt and drag click to select multiple lines using mouse

@rishavtraining
Copy link

I'm getting a separate cursor for each cell. After execution of one cell the cursor does not move to other and when I click in the next cell the cursor appears in previous and present both
cursor
. Please help me fixing this.

@farhan-naqvi
Copy link

I'm getting a separate cursor for each cell. After execution of one cell the cursor does not move to other and when I click in the next cell the cursor appears in previous and present both
cursor
. Please help me fixing this.

Even I am getting this error. I am not able to find any solution to it.

@rishavtraining
Copy link

rishavtraining commented Jul 12, 2021

Farhan change the default browser of your jupyter notebook and the issue will be gone. Check out YouTube videos to change the browser.
Hope this helps

@farhan-naqvi
Copy link

Farhan change the default browser of your jupyter notebook and the issue will be gone. Check out YouTube videos to change the browser.
Hope this helps

Hey, I restored my factory settings of chrome and it worked. Anyways thanks a lot for your answer.

@Zsailer Zsailer added this to the 7.0 milestone Feb 3, 2022
@Zsailer Zsailer added the bug label Feb 3, 2022
@Zsailer
Copy link
Member

Zsailer commented Feb 3, 2022

Thanks @detly.

This is solved in JupyterLab and will be solved in the future Notebook v7 release.

For more information about this new release, checkout the Notebook v7 Enhancement Proposal.

@GabeChurch
Copy link

GabeChurch commented May 11, 2022

FYI I found a really annoying issue around multiline-select where the only solution seems to be changing "CodeJump" default setting to use "control" instead of "alt". Only once this has been changed does multiline select work (for me).
image

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

No branches or pull requests