Sublime Forum

Exclude hidden files/folder

#1

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?

0 Likes

#2

Modify your .sublime-project file:

[code]{
“folders”:

	{
		"path": "/home/jack/workspace/myproject",
		"folder_exclude_patterns": ".*"],
		"file_exclude_patterns": ".*"]
	}
]

}[/code]

0 Likes

#3

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:

{
	"folders":
	
		{
			"path": "/C/Users/(my user name)/My Projects/addressBook",
			"folder_exclude_patterns": ".svn"],
			"file_exclude_patterns": ".*"]
		}
	]
}
0 Likes

#4

Thanks so much! Works like a charm!:slight_smile:

One question though:
Now how do I show .htaccess files (and all other invisibles files and folder stay invisible) only?

0 Likes