【问题标题】:Open several windows of the same file in Textmate在 Textmate 中打开同一文件的多个窗口
【发布时间】:2010-09-09 02:25:50
【问题描述】:

你知道如何在 Textmate 中为同一个文件打开多个窗口吗?

所以我可以同时查看和比较同一文件的不同部分。

谢谢

【问题讨论】:

  • 不是真正的编程问题。

标签: textmate


【解决方案1】:

因此,一种方法是使用以下脚本滥用 TextMate 项目:

# we want to force TextMate to open up another window with the document
# if we leave out /dev/null here textmate will simply (re)activate the
# current document. So, while we get a project file with two items
# (the current document - which we wanted a new view of) and an
# empty file named "null", it's the easiest solution I know of
# WD-rpw 03-22-07

tof=` echo $TM_FILEPATH | sed 's/\.[^.]*$/*/' `
mate $tof /dev/null

将其保存在捆绑包中的新命令中,您应该可以开始使用了。

【讨论】:

    猜你喜欢
    • 2013-12-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-06-28
    • 2017-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多