Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I would like to search all files in a subdirectory where the filenames match an expression (e.g. *.html) in my project.

In zsh or Vim one would use an expression like this:

subdirectory/**/*.html

Is there an equivalent with the Sublime Text 3 search and replace?

share|improve this question

1 Answer 1

up vote 2 down vote accepted
  1. Ctrl+Shift+F to open the Find/Replace bar
  2. Click the ... button next to the Where field and Add Folder
  3. Browse to subdirectory/
  4. Click the ... button next to the Where field and Add Include Filter
  5. Replace the auto-filled *.txt part of the Where field with *.html
  6. Fill out the Find and Replace fields as you desire, and click either Find or Replace buttons to the right of the fields.

This will result in a Where expression such as:

subdirectory/,*.html
share|improve this answer
    
Awesome - much appreciated. –  Brian M. Hunt Oct 24 '13 at 14:55

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.