如何从命令行将文件添加到 TextMate 项目?
我希望能够从命令行将文件添加到 Textmate 项目(当前打开)。有没有办法做到这一点(也许通过Applescript,mate命令,直接编辑项目文件等)?
I'd like to be able to add a file to a Textmate project (which is currently open) from the command line. Is there a way to do it (maybe via Applescript, the mate
command, directly editing the project file, etc.)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面是一个示例 TextMate 项目文件:
您所需要做的就是创建一个命令行工具,其中添加以下信息:
不要忘记将 PATH_TO_FILENAME 替换为真实路径。通常情况下,我会写一个脚本来说明我的观点,但由于我没有时间,我只能提供这个建议。
Here is a sample TextMate project file:
All you need to do is create a command-line tool which adds the following information:
Don't forget to replace PATH_TO_FILENAME with real path. Normally, I would write the script to illustrate my point, but since I don't have time, I can only offer this suggestion instead.