Home Download Buy Blog Forum Support

Exclude hidden files/folder

Exclude hidden files/folder

Postby GerjanOnline on Fri Mar 02, 2012 3:26 pm

How can I exclude hidden files/folders from the sidebar (and thus from search results)?

Currently I have all the hidden .svn folders in my side bar so the "find in files" does also look into these folders, which is very annoying (duplicate results, files I should not touch etc.)

Is this a setting or option? If not, please can you add this?
GerjanOnline
 
Posts: 1
Joined: Fri Mar 02, 2012 3:18 pm

Re: Exclude hidden files/folder

Postby jackocnr on Wed Mar 07, 2012 9:38 pm

Modify your .sublime-project file:
Code: Select all
{
   "folders":
   [
      {
         "path": "/home/jack/workspace/myproject",
         "folder_exclude_patterns": [".*"],
         "file_exclude_patterns": [".*"]
      }
   ]
}
jackocnr
 
Posts: 5
Joined: Wed Mar 07, 2012 9:35 pm

Re: Exclude hidden files/folder

Postby teaman on Thu Feb 28, 2013 7:54 pm

This does not work for me. When I select the project top level folder and right-click on it and select Find in Folder... it still finds results in the .svn folder, specifically in files such as this path:
...\.svn\pristine\15\1567d7d71db6fb62b8e88dadcac28215f97c580e.svn-base:

So in my folders section in the .sublime-project file I specify:
Code: Select all
{
   "folders":
   [
      {
         "path": "/C/Users/(my user name)/My Projects/addressBook",
         "folder_exclude_patterns": [".svn"],
         "file_exclude_patterns": [".*"]
      }
   ]
}
teaman
 
Posts: 3
Joined: Thu Feb 28, 2013 7:47 pm

Re: Exclude hidden files/folder

Postby drpelz on Sun Sep 01, 2013 10:18 pm

Thanks so much! Works like a charm!:)

One question though:
Now how do I show .htaccess files (and all other invisibles files and folder stay invisible) only?
drpelz
 
Posts: 10
Joined: Sun Sep 01, 2013 10:15 pm


Return to General Discussion

Who is online

Users browsing this forum: Exabot [Bot] and 17 guests