Search code examples
sublimetext2

How to use wildcards in search paths?


Is it possible to use a wildcard in a path ("Where" input) ? I know it's possible for the files names, but I can't find how to use wildcards in the path itself.
For instance, I'd like to perform this search:

/home/john/dev/*/branch_name,*.py

The reason is that I have 3 dev branches with the same name (branch_name) but belonging to different projects. But the wildcard * doesn't work. So far, my only alternative solution is to perform 3 searches:

/home/john/dev/project1/branch_name,*.py
/home/john/dev/project2/branch_name,*.py
/home/john/dev/project3/branch_name,*.py

Solution

  • Check out the ... button next to the where field. You can include multiple directories if they're comma-separated or use the Add Folder option. There are a couple other options there too that might help.