简体   繁体   English

TextMate项目中具有相同名称的文件

[英]Files with the same name in a TextMate project

One of the few things that bothers me about TextMate is that it can be difficult to differentiate between files that share the same name in a project, eg: 关于TextMate困扰我的几件事之一是,很难区分项目中共享相同名称的文件,例如:

alt text http://img530.imageshack.us/img530/6791/bild1r.png 替代文字http://img530.imageshack.us/img530/6791/bild1r.png

In this case, the file on the right is located in the project relative path model/realtimemodel.py, while the other file contains unit tests for that code. 在这种情况下,右边的文件位于项目相对路径model / realtimemodel.py中,而另一个文件包含该代码的单元测试。 Sure, you can command-click the name in the title bar to see a directory list, but it feels sub-optimal. 当然,您可以在标题栏中单击命令的名称以查看目录列表,但是感觉不太理想。 What I would like is something along the lines of: 我想要的是类似以下内容的东西:

alt text http://img240.imageshack.us/img240/1783/bild3.png 替代文字http://img240.imageshack.us/img240/1783/bild3.png

This gives a quick at-a-glance idea of what file you're working on. 这使您可以快速了解正在处理的文件。 Has anyone seen any plugin or bundle that makes this possible? 有没有人看到任何插件或捆绑软件使之成为可能?

Edit: Here is a ticket in Macromates tracker that requests this feature (although I would prefer a project-relative path). 编辑: 这是 Macromates跟踪器中的一项请求该功能的票据 (尽管我希望使用相对于项目的路径)。

I think vasi 's solution is the closest you can get to what you want (+1 for him) I don't think that the bundle can be automatically ran on open, and also, the title changes back to default when switching between tabs, so even if it could, it would be useless. 我认为vasi的解决方案是您可以得到的最接近的解决方案(对他而言是+1)我不认为捆绑包可以在打开时自动运行,而且,在选项卡之间切换时标题会变回默认值,因此即使可以,也将毫无用处。

I've searched for a defaults key (like the one from Finder, _FXShowPosixPathInTitle editable with 我已经搜索了默认键(如Finder中的默认键, _FXShowPosixPathInTitle可通过

defaults write com.apple.finder _FXShowPosixPathInTitle -bool YES)

but there isn't any. 但是没有。 Here's the list of available keys for Textmate. 这是Textmate 可用键的列表

Maybe you can write feature request somewhere as it is very useful and not so hard to impletement. 也许您可以在某个地方编写功能请求,因为它非常有用,而且很难实现。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM