I created a quick and dirty sublime-gitignorer plugin to solve this problem.
It is currently being tested on Ubuntu and Windows in Sublime Text 2 and 3. I expect it to work on any other Linux distribution or Mac as well.
To install, if you have package control , simply:
- Press CTRL + SHIFT + P ( CMD + SHIFT + P on Mac)
- Select Install Package
- Find Gitignored File Excluder and press Enter .
Alternatively , if you do not have package management, you can copy gitignore_plugin.py to the package directory, which you can find by selecting Browse Packages... from the Preferences menu in Sublime. You really should get Package Control instead, although this is useful.
I'm not joking when I say that this plugin is dirty. The way it works is that the plugin every five seconds:
- Checks for Git repos located in your open folders
- asks Git which paths are ignored in each of these repos
- Adds these paths to the
file_exclude_patterns and folder_exclude_patterns .
Everything seems to be working fine.
Anyone who wants to contribute or report bugs should check the page.
Mark Amery Oct. 14 '14 at 23:47 2014-10-14 23:47
source share