Everytime i open a file with text mate and it is by default in new window, is it possible to open in new tab so I don't need to mess with the windows?

I am using latest textmate2 downloaded from github.


I am a novice with Textmate2 but have found when opening a file via the TextMate File Browser it open files in tabs. Go to View->Show File Browser.

Hope this helps.

| improve this answer | |

If you are using TextMate without the internal project functionality you can set your home directory or / as project folder.

Go to the Project folder (Shift + CMD + P) drop down the list and choose your home directory. Then drop down again and choose Use "MyName" as Project Folder. As @Tony has stated in his answer, all files udner the project dir are opened in tabs by default.

It works for TextMate version 2.0-alpha.9475.

| improve this answer | |

Also a bit of a work around. After opening several windows with text mate you can go to the menu bar Window > Merge All Windows

I also have a keyboard shortcut set up to quickly access the menu bar. This allows me to do this pretty easily and without a mouse.

| improve this answer | |

This will afaik only work if you are opening files that are in the same directory. Currently, Textmate 2 couples directories with projects.

A hacky and possibly not very extendable way would be to open a folder higher in the hierarchy every time you open an ad-hoc file in your filesystem like so:

mate ~/Sites ~/Sites/my-site/index.html
mate ~/Sites ~/Sites/my-other-site/index.html

This will open both files in the same window, since you are telling Textmate that your project is the ~/Sites directory.

Hope this helps.

| improve this answer | |

For what it's worth - if all you're trying to do is just open some files in the same window instead of in different windows, you can just do:

mate file1 file2

And put both files in the same window.

| improve this answer | |

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.