I have search problems too, but different from the above. When I “Find in Files…” across my project, a particular folder is getting excluded, even though I’ve commented out any binary_file_pattern or similar settings in the project. It shows the correct number of files to search through, it just returns no results for any of the files that are there even for searches that I can independently confirm would return a result. This behavior is new to Sublime Text 4.
When I perform the search, it is in a subfolder of the project (
foo/bar). If I move the search to just
bar, the search returns the results I expect (but of course, along with all the other similar results in subdirectories of
EDIT: Trying this later, if I put a forward slash at the end of the “find in” directive (i.e.,
foo/bar/), it returns the expected results. This is bizarre, because I don’t need the trailing slash when I search the parent directory (i.e.,
foo works just as well as
foo/). I was wrong about it searching the right number of files, though, adding the trailing slash increases the number of files it searches for whatever reason (not from 0 to ~900ish, but from ~300ish to ~900ish). What is happening here to limit where the search looks?