ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Gitignored File Excluder

Sublime plugin that excludes from your Sublime project any files ignored by git

Details

Installs

  • Total 13K
  • Win 3K
  • Mac 7K
  • Linux 3K
Apr 29 Apr 28 Apr 27 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16
Windows 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 1 1 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 1 0 0 0 0 0 0 1 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 2 1 0 0 1 0 0 0 0 1 1 0 0 0 1 0 1 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-gitignorer

Sublime plugin that excludes from your Sublime project any files ignored by git.

Created as a solution to http://stackoverflow.com/questions/18482976/tell-sublime-text-to-ignore-everything-in-gitignore

Usage instructions:

  • Install the plugin via Package Control by following these steps:
    • Press CTRL+SHIFT+P (CMD+SHIFT+P on Mac)
    • Select “Install Package”
    • Search for the Gitignored File Excluder and press Enter.
  • 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.
  • After you create a new Git-ignored file or update your .gitignore files, the files should be hidden from your project within 5 seconds.
  • 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.
  • 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.

Currently tested on Ubuntu and Windows in Sublime Text 2 and Sublime Text 3. I haven't tested on Mac yet but it should work there too.