如何帮助 TextMate 识别要加载哪个包?
我对正在使用的四个捆绑包有疑问,特别是 Ruby、Ruby on Rails、RSpec 和 Sinatra。
大多数时候,TextMate 都能设法获得正确的包类型,但对于这些,我发现自己不断地从 Sinatra 切换到 Ruby on Rails,因为某些模型文件被识别为 Sinatra。
RSpec 也经常发生这种情况,其中 Sinatra 捆绑包有时优先。
有什么方法可以管理捆绑包的识别方式吗?如果我能以某种方式提示 TextMate 在特定项目中或基于目录结构完全忽略哪些捆绑包,那就太好了。
I have a problem with four bundles I'm using, specifically Ruby, Ruby on Rails, RSpec and Sinatra.
Most of the time TextMate manages to get the bundle type right, but for these, I find myself constantly switching form Sinatra to Ruby on Rails, as some model files get recognized as Sinatra.
It also happens a lot with RSpec, where the Sinatra bundle sometimes takes precedence.
Is there any way to manage the way in which bundles are recognized? It would be great if I could somehow hint TextMate what bundles to completely ignore in a specific project, or based on a directory structure.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我认为您可以修改您的 Sinatra 捆绑包,使其在检测到
require 'sinatra'
时立即触发I think you can modify your Sinatra bundle to trigger as soon as it detects
require 'sinatra'