[TxMt] Re: open file NOT into tab of existing window

Joshua Dunham joshua.dunham at gmail.com
Fri Apr 13 16:51:26 UTC 2018


Hey Martin,

That was a great explanation on why this occurs. As you've said, if
you open a file in an upper level all downstream docs will open in it.
For Macs, which puts user files beneath your $HOME folder, ... this is
a very inconvenient 'feature' to have. Any random file I open in my
home folder automatically becomes the default project for downstream
files (everything).

Is it possible to turn this off? I've never really used the project
feature before and I guess I would have preferred to opt-in to such a
huge change or at have visibility into how to turn it off.

-J

On 13 April 2018 at 07:19, Michael Sheets <mummer at whitefalls.org> wrote:
> On Apr 12, 2018, at 3:30 PM, Matt Neuburg <matt at tidbits.com> wrote:
>>
>> I'm sure there's some simple way and that this has been asked and answered before: How do I ask TextMate _not_ to open a new file into a tab of an existing window, but rather into a window of its own?
>
> I think the best way to explain how to work with the issue is to learn how TextMate treats windows and projects. Then you should understand why TextMate sometimes opens a document in a tab vs a window.
>
> So firstly in 2.0 everything is a project, in 1.x this wasn’t the case as a project was a specific thing that was created. When you open a directory in TextMate that becomes the project, if you open a file in a window by itself it’s parent directory becomes the project directory for that window. The project determines where Find in Project and Open Quickly search along with other features. It is also the directory that many bundle items will use as the working directory, etc.
>
> Now if you open a file the already opened projects are checked, if the file is contained within that project it is opened as a tab in that project to help group and organize your work area. If the file is not contained in an open project it gets a new window and becomes a project itself.
>
> If your getting a case where you are seeing all documents opening in a single window this is likely because you have a window with a very high project directory. Like if you open a file that is in the root of your documents folder then any file in that folder will open in that window even if it is a few levels down in the hierarchy. This can also happen if you open a file in the root of your home folder. Check if this is the case in the window you are having an issue with and either close that window or reset the project directory lower down by using the path menu at the top of the file browser (It offers the option to set the current directory as the project directory).
>
> --
> Michael Sheets – MacroMates Support
>
> Tip of the Day: Use ⌃⌘T (control-command-T) to see a list of currently available bundle items, start typing to filter the list.
>
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate


More information about the textmate mailing list