Hiding specific files in TextMate
I do a lot of JRuby on Rails apps, and we have a fair amount of Java .jar dependencies. These become quite annoying in textmate as it really muddies up my lib directory, and I never (ob开发者_如何学Goviously) need to actually open these files.
Can someone tell me how I might hide .jar files from my file listing in Textmate??
You need to modify File Pattern regex in :
TextMate-->Preferences-->Advanced-->FolderReferences
You just have to add |\.(jar)
to your regex:
!(/\.(?!htaccess)[^/]*|\.(tmproj|o|pyc)|\.(jar)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$
Have a look at this.
You can do this for a specific Textmate project too:
- Save the project somewhere, for example in
myproject.tmproj
. - Make sure the project isn't open in Textmate (otherwise Textmate will overwrite your changes when you close the project)
- Open up the
myproject.tmproj
file with a different text editor - Add a pattern for the files you want to ignore to the
<string>
value on the line immediately following theregexFolderFilter
line. In this case you would add|\.jar
just before the)$</string>
. - Save the file.
- Re-open the project in Textmate.
You can also open the .tmproj
file in step 3 with Textmate if you use the command line command mate
, too.
精彩评论