Skip to content

Instantly share code, notes, and snippets.

@kaelig
Created February 21, 2012 09:17
Show Gist options
  • Save kaelig/1875361 to your computer and use it in GitHub Desktop.
Save kaelig/1875361 to your computer and use it in GitHub Desktop.
Textmate Rails application file and folders exclusion patterns for front-end developers

As front-end developers, we don't need to see all the files and folders of a Rails (~> 3.1) project.

So I stripped out everything I didn't need : bin, log, vendor, tmp, test and script folders, plus some git-related files.

Feel free to fork this gist and adapt it to your needs!

How-to

  1. CTRL+Click on the project folder › Show Information.
  2. Paste the regular expressions of this gist into the corresponding text fields.
!(/\.(?!.)[^/]*|\.(tmproj|gitmodules|gitattributes|gitignore|o|pyc|DS_Store)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$
!.*/(\.[^/]*|CVS|bin|log|lib|vendor|tmp|test|spec|script|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment