notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
[Feature Request] Add Ability to Remove Selections when Multi-Editing with Ctrl+Click
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
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
- Enable Multi-Editing.
- Add multiple cursors with Ctrl+Click, including one by accident.
- Try to click one of the cursors to remove it.
Expected Behavior
The cursor is removed.
Actual Behavior
The cursor is not removed.
Debug Information
N/A
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the multi-editing Ctrl+Click handling and reading how existing cursors and overlapping selections are managed. The feature is done when clicking an existing cursor removes it, overlapping selections remove the prior selection, and the current multi-editing behavior remains intact.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100