Skip to content

Commit 10db0c7

Browse files
Create README.md
Resolves #2
1 parent eb6b9e4 commit 10db0c7

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
sublime-gitignorer
2+
==================
3+
4+
Sublime plugin that excludes from your Sublime project any files ignored by git.
5+
6+
Created as a solution to http://stackoverflow.com/questions/18482976/tell-sublime-text-to-ignore-everything-in-gitignore
7+
8+
Usage instructions:
9+
10+
* Install the plugin by copying and pasting `gitignore_plugin.py` into your Packages folder. See http://stackoverflow.com/a/15652795/1709587 for manual package installation instructions. Installation via Sublime Package Control is not yet supported.
11+
* `sublime-gitignorer` will regularly check all your open folders for files that are ignored by Git and update your `"file_exclude_patterns"` and `"folder_exclude_patterns"` settings in Sublime to match the list of files and folders ignored by Git.
12+
* After you create a new Git-ignored file or update your `.gitignore` files, the files should be hidden from your project within 5 seconds.
13+
* Since the `"file_exclude_patterns"` and `"folder_exclude_patterns"` settings are now being managed programatically, if you want to *manually* set file or folder exclusion patterns in sublime, you can use the `"extra_file_exclude_patterns"` and `"extra_folder_exclude_patterns"` settings. Any file paths you list in here will automatically be included in your `"file_exclude_patterns"` and `"folder_exclude_patterns"` in addition to Git-ignored paths.
14+
* If you already have `"file_exclude_patterns"` or `"folder_exclude_patterns"` set, there is no need to back them up prior to installing this plugin; they will be automatically migrated to the `"extra_file_exclude_patterns"` and `"extra_folder_exclude_patterns"` settings on first launch.
15+
16+
Currently tested on Ubuntu in Sublime Text 2 and Sublime Text 3. I haven't tested on Mac yet but it should work there too. Windows is not currently supported.

0 commit comments

Comments
 (0)