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

[FR] keyboard shortcut for creating multiple cursors #3064

Closed
haakon-e opened this issue Oct 15, 2024 · 3 comments
Closed

[FR] keyboard shortcut for creating multiple cursors #3064

haakon-e opened this issue Oct 15, 2024 · 3 comments

Comments

@haakon-e
Copy link

Currently, (afaik) you can only create multiple cursors (mac) with Option+click, or by selecting some text, then Cmd+D to select matching text in the same cell (see e.g. #3063 for an example).

In VSCode, you can do Option+Cmd+Down/Up-Arrow to create cursors on the line below or above. I use this daily in VSCode, especially for data visualization work where you often define many similar variables, lines of code, etc. in the coding process. It would be great to add support for this, even if with another keyboard shortcut. Currently (in Chrome) the keyboard shortcut seems to switch between cursor focus on the webpage and the search bar, so perhaps it's challenging to oversteer that.

Julia v1.11, Pluto v0.20.0

@fonsp
Copy link
Owner

fonsp commented Oct 16, 2024

We can't override it, sorry!

@fonsp fonsp closed this as not planned Won't fix, can't repro, duplicate, stale Oct 16, 2024
@haakon-e
Copy link
Author

Just before we close this for good: there are other key combinations that aren't used by the browser that could be used for this. Is that something you'd be willing to consider?

Alternatively, could it be implement with unset key bindings that I can configure myself?

@fonsp
Copy link
Owner

fonsp commented Oct 21, 2024

Hey! We have to prioritize issues since we don't have so much time... If there was an easy default to implement then fine, but it looks like we have to come up with our own shortcut, implement the codemirror functionality ourselves (it's not a built-in cm command like copyLineDown) and communicate it to the user. Too much work, sorry! :(

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

No branches or pull requests

2 participants