On the find in files dialog, there is a “Where:” text box and an associated “…” button . Click the button and select “Add include filter…”. This will fill the contents of the text box with “*.txt”. Change this to suit your needs. You can add multiple criteria.
Find in Files of Filetype – Sublime Text