Skip to content

[BUG] <title>Find in Files searches buffers rather than files #16177

@asapuntz

Description

@asapuntz

Is there an existing issue for this?

  • I have searched the existing issues

Description of the Issue

the contents of file which is not synchronized with corresponding buffers is ignored by the Find in Files feature
I can see both behaviors being of interest, but the terminology in the dialog (tab) suggests that it's the files that should be searched

Steps To Reproduce

  1. Open ro file foo.txt containing "foo" and ro file bar.txt (same dir) containing "bar"
  2. select the foo.txt tab, highlight foo, and do Ctrl+Shift+F to search all txt files in the current dir
  3. only foo.txt shows up in the Search results pane
  4. replace bar.txt with a file containing "foo bar"
  5. repeat the search, same result (only foo.txt)
  6. select the bar.txt tab, and agree to reload it
  7. repeat the the search, different results (both foo.txt and bar.txt)

Current Behavior

buffers of open files are searched, even if out-of-sync

Expected Behavior

files should be searched

Debug Information

Notepad++ v8.7.7   (64-bit)
Build time : Feb  6 2025 - 03:19:13
Path : C:\Program Files\Notepad++\notepad++.exe
Command Line : "C:\Program Files\Notepad++\change.log" 
Admin mode : OFF
Local Conf mode : OFF
Cloud Config : OFF
Periodic Backup : ON
Placeholders : OFF
DirectWrite : OFF
Multi-instance Mode : monoInst
File Status Auto-Detection : cdEnabledNew (for current file/tab only)
Dark Mode : ON
OS Name : Windows 10 Pro (64-bit)
OS Version : 22H2
OS Build : 19045.5440
Current ANSI codepage : 1252
Plugins : 
    mimeTools (3.1)
    NppConverter (4.6)
    NppExport (0.4)

Anything else?

No response

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions