Home Download Buy Blog Forum Support

Find in Files: Panel size? Ignore files?

Find in Files: Panel size? Ignore files?

Postby Jay Levitt on Thu Oct 27, 2011 3:06 pm

1. Is there a way to set the default size of the panel that appears when I search for files?

2. Is there a way to ignore certain files or filetypes, a la TextMate's folder/file references?
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Find in Files: Panel size? Ignore files?

Postby Jay Levitt on Thu Oct 27, 2011 3:58 pm

Answer to my second question: In Global Settings, there are three keys:

folder_exclude_patterns: folders (NOT a full path, just a folder name or pattern) to leave out of the sidebar and search
file_exclude_patterns: file name or pattern to leave out of the sidebar and search
binary_file_patterns: file name or pattern to leave IN the sidebar but OUT of search
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Find in Files: Panel size? Ignore files?

Postby adzenith on Thu Oct 27, 2011 8:42 pm

Jay Levitt wrote:1. Is there a way to set the default size of the panel that appears when I search for files?

I don't think so, but there is a button that will put the find results into a new view instead of in the results panel—it's called "Use Buffer". I recommend it: in fact, I think it should be select by default.
adzenith
 
Posts: 1213
Joined: Mon Oct 19, 2009 9:12 pm

Re: Find in Files: Panel size? Ignore files?

Postby jps on Thu Oct 27, 2011 9:21 pm

You can also enter negative file patterns, such as -*.txt in the "In Files" field (or in the Where field in the current dev build).
jps
Site Admin
 
Posts: 3062
Joined: Wed Mar 19, 2008 12:33 pm

Re: Find in Files: Panel size? Ignore files?

Postby Jay Levitt on Fri Oct 28, 2011 4:44 pm

I knew about the buffer, but I didn't realize till just now that double-clicking on search results would work from that buffer! I thought it was just a text buffer. Nice.
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Find in Files: Panel size? Ignore files?

Postby seantan on Wed Nov 16, 2011 2:37 am

For the folder_exclude_patterns, can we instead define relative path patterns instead of folder name pattern which is limiting.

This is the case when I have the following,

Code: Select all
proj
|-- assets
|-- compiled
    |-- assets



I want the "proj/compiled/assets" folder to not appear in the sidebar and and search. And I can't use the pattern "assets" to exclude it because there are other "assets" folders in the project which I would want to be searchable.
seantan
 
Posts: 3
Joined: Wed Nov 16, 2011 2:26 am

Re: Find in Files: Panel size? Ignore files?

Postby Jay Levitt on Wed Nov 23, 2011 6:21 am

Yes, please... relative path patterns are a must.
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Find in Files: Panel size? Ignore files?

Postby swrobel on Wed Feb 01, 2012 8:03 pm

+1
swrobel
 
Posts: 16
Joined: Wed Feb 01, 2012 8:02 pm


Return to General Discussion

Who is online

Users browsing this forum: Clams and 13 guests