notepad-plus-plus / notepad-plus-plus/notepad-plus-plus

[Feature Request] Add Ability to Remove Selections when Multi-Editing with Ctrl+Click

Open
#12,530 10 comments 0 reactions 0 assignees View on GitHub

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
  1. Enable Multi-Editing.
  2. Add multiple cursors with Ctrl+Click, including one by accident.
  3. 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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.