开发者

How to tell to TextMate ignore my Katz's Bundler folder in "Go to File"?

开发者 https://www.devze.com 2022-12-18 05:58 出处:网络
I use Katz\'s Bundler to manage gem dependencies. Who know, how to tell to TextMate ignore my \"vendor/bundler_gems\" folder in \"Go to File\"?

I use Katz's Bundler to manage gem dependencies.

Who know, how to tell to TextMate ignore my "vendor/bundler_gems" folder in "Go to File"?

Image demonstrate my little problem.

You can see, what I want to find my application.sass, instead "Go to File" find lots of trash from bundle开发者_高级运维r folder.


I find solution:

In dialog "Preferences → Advanced → Folder References", "Folder Pattern" input:

Original pattern:

!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$

I change it to:

!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle)|vendor)$

...to ignore vendor folder.

Or:

!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle)|vendor/bundler_gems)$

...to ignore vendor/bundler_gems only.


TextMate keeps folder references setting per project basis in .tmproj file.

Changing the regular expression in TextMate preferences dialog doesn't update project file. This means that first answer to this question didn't solve similar problem I had. Outside plugins might have something to do with it (Project+ for example).

In first answer doesn't work:

Open up your project file with other editor than TextMate and edit the "regexFolderFilter" key by hand.

Sidenote: Normally forward slashes should be escaped. Don't know how TextMate actually runs the regular expression since outcome is the same with or without escaping.

0

精彩评论

暂无评论...
验证码 换一张
取 消