-
Notifications
You must be signed in to change notification settings - Fork 4.6k
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
[Feature Request] Add Ability to Remove Selections when Multi-Editing with Ctrl+Click #12530
Comments
It seems reasonable that Ctrl+click of an existing caret/selection should remove that caret/selection. However, this behavior is dependent upon Scintilla (Notepad++'s underlying editing component) behavior, and thus this issue should be given the "Scintilla dependent" label.
That already seems to be Notepad++ behavior (v8.4.7). |
Yes, accepted, and I agreed it would be reasonable for that behavior to change.
IMO I don't know which behavior is "correct" in this case. Are there other editors that can be cited that give weight to VS Code's method being the right one? If I try reproducing your N++ animation, I don't get multiple carets in the end. What are you doing when the text shortens? I'd think you just pressed the |
Just as there should be a way to remove a cursor, there has to be some way to remove a selection. Even if we still "merge" the selection like in Notepad++, there at least should be a way to click an existing selection to remove it.
I just press |
Agreed, I think several times now.
OK, I can reproduce it somewhat, interestingly not as easily as you can. |
v8.6 added "Undo the Latest Added Multi-Select", which helps this issue, but that doesn't work if the cursor or selection to remove is not the latest. |
Try 8.6.1:
|
I can confirm that this issue is fixed in v8.6.1.RC. It's different from VS Code in that it merges overlapping selections instead of removing old ones, but that's perfectly acceptable. It just so happened that 8.6 is the current version when I tested, while the upcoming 8.6.1 will fix it. If I had checked on this issue later, it might have already been fixed. |
I don't understand what you meant by this statement. |
@alankilborn see the animations in #12530 (comment) In Notepad++, if you make a new selection that partially overlaps an existing selection, they are merged to form two selections, which is different from VS Code, which removes the old selection. If the new selection completely covers an existing selection, the old selection is removed, which is the same as in VS Code. |
Description of the Issue
In Visual Studio Code, Alt+Click is the default way to add multiple cursors. If you Alt+Click an existing cursor, it will remove it.
Also, if you add another selection that overlaps an existing selection, the existing selection will be removed.
Something similar should be added to Notepad++.
It is annoying when you misclick and can't easily go back to the state before the misclick.
Steps to Reproduce the Issue
Expected Behavior
The cursor is removed.
Actual Behavior
The cursor is not removed.
Debug Information
N/A
The text was updated successfully, but these errors were encountered: