有没有办法强制 TextMate 缓存文件?
我正在 TextMate 中通过 AFP 安装处理 Rails 项目。每次 TextMate 成为活动窗口时,它都会旋转大约 30s-1m,这非常令人沮丧。当发生这种情况时,我对 TextMate 进行了采样,发现对 +[NSFileAttributes _attributesAtPath:partialReturn:filterResourceFork:error:]
的多次调用是问题所在。有什么办法可以消除这些旋转吗?
我是唯一一个处理这些文件的人,所以我并不真正关心与文件更改的冲突(我不介意文件是否在本地缓存,直到我明确保存它们)。
I'm working with a Rails project over an AFP mount in TextMate. Every time TextMate becomes the active window, it spins for around 30s-1m, which is VERY frustrating. I've sampled TextMate when this is happening, and found multiple calls to +[NSFileAttributes _attributesAtPath:partialReturn:filterResourceFork:error:]
to be the issue. Is there any way to eliminate these spins?
I'm the only one working on the files, so I don't really care about collisions with file changes(I wouldn't mind if the files were cached locally until I explicitly saved them).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的。有一个插件可以实现此目的 -
Remate
顺便说一句,发生的事情是 TextMate 正在刷新您的整个源代码树。该插件将关闭此功能 - 其效果是,如果您将新文件添加到源代码树中,则需要关闭然后打开该插件(这非常简单,它位于“窗口”菜单下)。
Yep. There's a plugin for this --
Remate
BTW, what's going on is that TextMate is refreshing your entire source tree. This plugin will turn this off - the effect of which is that if you add new files to your source tree, you need to turn off and on the plugin (which is very easy, it's under the "Window" menu).