Home Download Buy Blog Forum Support

Find in files found also .sublime-workspace

Find in files found also .sublime-workspace

Postby Nova on Tue Jul 10, 2012 9:08 am

Hi, everybody

new user of ST2, I'm starting to love it! :D

I found a (minor) problem, anyhow. I saved my project in the root directory of the project itself. For instance:

D:\Projects\TestProject\test.sublime-project
D:\Projects\TestProject\test.sublime-workspace

(D:\Projects\TestProject of course contains a lot of subfolders)
Now, when I perform a "find in files" operation, sometimes I find whatever I'm looking for in the .sublime-workspace file, as it seems that ST is keeping some temporary buffer in it.
Is there any way to avoid this?

Thanks in advance for any help.
Nova
 
Posts: 19
Joined: Tue Jul 10, 2012 9:01 am

Re: Find in files found also .sublime-workspace

Postby guillermooo on Tue Jul 10, 2012 10:33 am

From the default settings file:

Code: Select all
    // folder_exclude_patterns and file_exclude_patterns control which files
    // are listed in folders on the side bar. These can also be set on a per-
    // project basis.
    "folder_exclude_patterns": [".svn", ".git", ".hg", "CVS"],
    "file_exclude_patterns": ["*.pyc", "*.pyo", "*.exe", "*.dll", "*.obj","*.o", "*.a", "*.lib", "*.so", "*.dylib", "*.ncb", "*.sdf", "*.suo", "*.pdb", "*.idb", ".DS_Store", "*.class", "*.psd", "*.db"],
    // These files will still show up in the side bar, but won't be included in
    // Goto Anything or Find in Files
    "binary_file_patterns": ["*.jpg", "*.jpeg", "*.png", "*.gif", "*.ttf", "*.tga", "*.dds", "*.ico", "*.eot", "*.pdf", "*.swf", "*.jar", "*.zip"],
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Find in files found also .sublime-workspace

Postby Nova on Tue Jul 10, 2012 12:56 pm

Thank you for your reply. I found that settings, but I was just wondering if this feature should be included in ST by default, as .sublime-project and .sublime-workspace files are extension it should know, anyhow.

Thanks again
Marco
Nova
 
Posts: 19
Joined: Tue Jul 10, 2012 9:01 am


Return to Technical Support

Who is online

Users browsing this forum: Google [Bot] and 33 guests