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

[BUG] Search and Replace in files fail if filter contains space

Open
#16,634 1 comment 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

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.

Image

Steps To Reproduce
  1. Create a basic file called "hello world.txt" in c:\temp
  2. Write "Earth" in it
  3. In Notepad++ , search for "earth" in files "hello world.txt" in C:\temp : there is no result
  4. Search for "earth" in file ""hello world.txt"" in C:\temp : there is no result
  5. 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

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 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.