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

Scrollbar showing the positions of a double-click selection

Open
#11,809 1 comment 1 reaction 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

When developing and debugging, it would be extremely helpful to see at a glance the number of occurrences and locations of the selected string in the scrollbar (just like chrome and edge do it when searching in a page with Ctrl+F)

Steps to Reproduce the Issue
  1. double-click a string.
  2. The scroll bar does not show the number of occurrences and locations of the selected string.
Expected Behavior

This is a feature request.
It would be helpful to see at a glance the number of occurrences and locations of the selected string in the scrollbar

Actual Behavior

Currently when selecting a string by double-clicking, one has to slowly scroll down searching for the highlighted occurrences of the string.

Debug Information

Notepad++ v8.4.2 (32-bit)
Build time : May 29 2022 - 16:45:17
Path : C:\Program Files (x86)\Notepad++\notepad++.exe
Command Line : $COMMAND_LINE_PLACEHOLDER$
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
OS Name : Windows 10 Enterprise (64-bit)
OS Version : 20H2
OS Build : 19042.1586
Current ANSI codepage : 1252
Plugins :
ComparePlugin (2)
DSpellCheck (1.4.6)
LightExplorer (2)
mimeTools (2.8)
NppAutoIndent (1.2)
NppConverter (4.4)
NppExport (0.4)
XMLTools (3.1.1.10)

This is a feature request. If implemented, this feature will enhance the developer experience by making "life easier" and more productive.

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 editor's double-click selection handling and scrollbar rendering, then trace how search highlights and their positions are represented. Confirm the expected behavior against the issue description and identify existing UI or editor tests; done means selected-string occurrences and locations are visible in the scrollbar without a separate search action.

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
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.