-
Notifications
You must be signed in to change notification settings - Fork 27.9k
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
CMD+D and multicursor selection #10074
Comments
@alexandrudima I'm really interested to getting this fixed. Still switching to sublime text for some tasks because of this. Can you give me a hint in which module I could start looking for this bug? |
@alexandrudima The problematic line is https://github.com/Microsoft/vscode/blob/master/src/vs/editor/contrib/find/common/findController.ts#L541. This line takes the latest cursor as start position when searching for matches. Shouldn't it ignore empty selections and use the end of the last non-empty selection as last position when searching for matchings? btw: when having multiple selections, Sublime Text will expand empty selections to select the word instead of looking for the next selection. |
(Just a clarification) In the case of:
hitting CMD+D should select the full word the cursor is currently over, not just the same match. Edit: |
@npx actually, it's even easier to create a plugin that replaces the cmd/ctrl+d command. In fact, I've just created one that works as I would've expected. If you're interested, you can find it here: |
Really interested in an option like |
|
Steps to Reproduce:
1,1
locationCMD+D
3 times to selectabc
sright
3 times to get into middle ofdef
CMD+D
For comparison result of the same in Atom/Sublime:
The text was updated successfully, but these errors were encountered: