notepad-plus-plus / notepad-plus-plus/notepad-plus-plus
[BUG] Search and Replace in files fail if filter contains space
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 29.4k
- Forks
- 5.4k
- PR merge metrics
- No merged PRs in 30d
Description
Is there an existing issue for this?
- I have searched the existing issues
Description of the Issue
In the below example, I filter files with their full name : Transformation_Pt_Img_000_White to mireCH3Ar_11x11_pas7.yml
Unfortunately, there are some space in this name and the search fails.
With filter Transformation_Pt_Img_000_White*.yml , search is successful.
Steps To Reproduce
- Create a basic file called "hello world.txt" in c:\temp
- Write "Earth" in it
- In Notepad++ , search for "earth" in files "hello world.txt" in C:\temp : there is no result
- Search for "earth" in file ""hello world.txt"" in C:\temp : there is no result
- Search for "earth" in files "hello*world.txt" in C:\temp : there is one result
Current Behavior
There is no hit in the Search panel
Expected Behavior
May be this behaviour is intuitive to peaople familiar with regular expressions
Debug Information
None
Only the above scenario
Anything else?
No response
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 in the Search panel by reproducing the steps with hello world.txt and the shown filename filters. Trace how file filters containing spaces are parsed, then verify that searching within a filename containing spaces returns the expected match without breaking wildcard filters.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- desktop, search
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100