Sublime Forum

Odd behaviour (bug?) with Find in files

#1

Hi,

I just noticed that Find in files seems to cache results, so that if files change somehow (in my case, git reset --hard), it will not show some relevant matches.
When I eventually open some of the offending files, Sublime will acknowledge that the content changed (I can see the old content appear briefly before being replaced by the new one), and subsequent Find in files will find results in those files.

0 Likes

#2

The problem is that if a file exists in memory (i.e. it’s opened in the editor) Sublime Text will search that version rather than the version on disk. Either you can activate all of your files so Sublime Text reloads them all, or you can simply close all files.
You may also be able to solve the problem by removing from your Where: field in find in files, but I haven’t tested that.

0 Likes