开发者

Open several windows of the same file in Textmate

do you know how can one in Textmate open several windows for the same file?

So I can at the same开发者_C百科 time look and compare different parts of the same file.

Thanks


So one way of doing it is to abuse TextMate Projects with the following script:

# 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

Save this in a new Command in a bundle and you should be ready to go.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜