是否可以从 Textmate 启动外部图像编辑器?
是否可以从 TextMate 项目抽屉启动外部图像编辑器?我想同样的概念也适用于从 TextMate 启动任何外部编辑器。现在,如果我右键单击图像文件,我只能选择在预览或 Finder 中打开。
谢谢!
Is it possible to launch an external image editor from the TextMate project drawer? I suppose the same concept would apply to launching any external editor from TextMate. Right now, if I right-click on the image file, I only have an option to open in Preview or Finder.
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
是的。有一个(官方)TM Bundle 可以满足您的需求 - 它称为“ImageBrowser”。我最近安装了,但只使用过一次。对于您在问题中提到的目的来说,它似乎工作得很好;特别是,它会在当前项目中查找图像,并将它们显示在 TextMate 内运行的图像浏览器中。
您可以从 Macromates SVN 存储库 获取它。
Yes. There is an (official) TM Bundle that does what you want--it's called "ImageBrowser." I installed recently and i have used it only once. It seems to work fine for the purpose you mentioned in your Question; in particular, it finds images in your current project and displays them in an image browser that runs inside TextMate.
You can get it from the Macromates SVN Repository.
TextMate 尊重 Finder(也就是 LauchService)对每个文件的“打开方式”选择。当您在 Finder 中双击文件时打开的任何程序都将出现在 TextMate 的上下文菜单中。只需通过 Finder 的“获取信息”窗口将相关文件更改为您选择的编辑器,TextMate 就会尊重它。它是动态填充的,因此您无需重新启动 TextMate。
据我所知,除了默认程序之外,没有任何方法可以指定辅助程序。
TextMate respects the Finder's (well, LauchService's) "Open with" choice for each file. Whichever program would open when you double-click the file in Finder will appear in TextMate's contextual menu. Simply change this through the Finder's Get Info window for the file in question to the editor of your choice, and TextMate will respect it. It's dynamically populated, so you don't need to restart TextMate.
As far as I know, there's no method to specify a secondary program beyond the default.
我认为答案是否定的,但正如马特所说,探索“服务”菜单的用法。
I think no is the answer, but like Matt said, explore the usage of the Services menu.