Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .