notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
[Feature Request] Fill find field with selection only when selection changed
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Hi,
I would like to suggest a new option, that I think would bring the behavior I expect better and more easily than constantly switching the option "Don't fill find fields in Find dialog with selected word".
It would be to make an option "Fill find fields in Find dialog only when selection changed since the last time the search dialog was opened" or something like that (seems a bit too long stated like that I admit).
Example of current behavior with "Don't fill find fields in Find dialog with selected word" checked :
- Selecting some text close to what is search
- Opening search dialog
- Making a regular expression from the selected text copied
- Clicking "find all in current document"
- Scrolling to check if everything is ok, without changing selection
- Opening search dialog
- The regular expression got replaced by an old selection
New behavior with new option checked:
- Selecting some text close to what is search
- Opening search dialog
- Making a regular expression from the selected text copied (since selection was made since last opening of find dialog or program opening)
- Clicking "find all in current document"
- Scrolling to check if everything is ok, without changing selection
- Opening search dialog
- The regular expression is still there
I'm not sure I managed to express my idea in the best way, but I hope it's enough to be understood.
Thanks in advance if you consider it.
Notepad++ version 8.1.2
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
No files, tests, or entry points are mentioned. Start by locating the Find dialog's existing selection-filling option and determine how it tracks selection changes between dialog openings; done means the requested behavior is available as a clear option and preserves the current search text when the selection has not changed.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, search
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100