Sublime Forum

Is it possible to search only through files that have been modified or added?

#1

Hi!

I would like to search only through modified/added files.
Is it possible via some package or by native command/palette?

Thanks!

0 Likes

#2

Sublime doesn’t provide information on the status of files to the API, so although there may be a package that does something like this it would need to introspect that information itself (I’m assuming that you’re referring to git here).

I don’t think there’s any direct functionality for this in Sublime, but you can achieve something like that by opening all of the modified files and then using Find in Files and setting the Where field to only search open files. However that’s sub-optimal if you have many modified files.

0 Likes