Discussion:
[TxMt] open file NOT into tab of existing window
Matt Neuburg
2018-04-12 20:30:10 UTC
Permalink
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?

Main reason I need this is that with multiple unrelated files open I lose track of what's open if they are not all individual windows.

Thx - m.

--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
Graham Heath
2018-04-12 20:55:10 UTC
Permalink
Command+N seems to do that for me.

Not so much for you?
Post by Matt Neuburg
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?
Main reason I need this is that with multiple unrelated files open I lose
track of what's open if they are not all individual windows.
Thx - m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
--
Thanks,
Graham P Heath
Grady Player
2018-04-12 21:04:06 UTC
Permalink
I think he might mean with opening from the dragging to the application icon, or with the `mate` command...
It is a minor annoyance for me... the number of minor annoyances are kind of adding up in general for me.
If I were less lazy I would fix them, or fork it and fix them... or find another editor... but I bought a copy of text mate like 12 years ago... and that is a lot of laziness inertia to overcome.

-Grady
Post by Graham Heath
Command+N seems to do that for me.
Not so much for you?
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?
Main reason I need this is that with multiple unrelated files open I lose track of what's open if they are not all individual windows.
Thx - m.
--
matt neuburg, phd = http://www.apeth.net/matt/ <http://www.apeth.net/matt/>
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do <http://shop.oreilly.com/product/0636920107408.do>
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do <http://shop.oreilly.com/product/0636920107415.do>
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html <http://www.apeth.com/RubyFrontierDocs/default.html>
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate <http://lists.macromates.com/listinfo/textmate>
--
Thanks,
Graham P Heath
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
Matt Neuburg
2018-04-12 21:14:59 UTC
Permalink
Yeah, I shouldn't have said "New", that was misleading. I should have said existing (on disk). So Command-O, or drag onto TextMate's icon — no matter how I open something, it gets melded with what's already open into a tabbed window... m.
Post by Grady Player
I think he might mean with opening from the dragging to the application icon, or with the `mate` command...
It is a minor annoyance for me... the number of minor annoyances are kind of adding up in general for me.
If I were less lazy I would fix them, or fork it and fix them... or find another editor... but I bought a copy of text mate like 12 years ago... and that is a lot of laziness inertia to overcome.
-Grady
Post by Graham Heath
Command+N seems to do that for me.
Not so much for you?
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?
Main reason I need this is that with multiple unrelated files open I lose track of what's open if they are not all individual windows.
Thx - m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
--
Thanks,
Graham P Heath
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
George McGinley Smith
2018-04-13 08:56:24 UTC
Permalink
Not exactly what you're after, but there's a Menu Item for "Move tab to new
window" which you can add a keyboard shortcut to.
Post by Matt Neuburg
Yeah, I shouldn't have said "New", that was misleading. I should have said
existing (on disk). So Command-O, or drag onto TextMate's icon — no matter
how I open something, it gets melded with what's already open into a tabbed
window... m.
Post by Grady Player
I think he might mean with opening from the dragging to the application
icon, or with the `mate` command...
Post by Grady Player
It is a minor annoyance for me... the number of minor annoyances are
kind of adding up in general for me.
Post by Grady Player
If I were less lazy I would fix them, or fork it and fix them... or find
another editor... but I bought a copy of text mate like 12 years ago... and
that is a lot of laziness inertia to overcome.
Post by Grady Player
-Grady
Post by Graham Heath
Command+N seems to do that for me.
Not so much for you?
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?
Post by Grady Player
Post by Graham Heath
Main reason I need this is that with multiple unrelated files open I
lose track of what's open if they are not all individual windows.
Post by Grady Player
Post by Graham Heath
Thx - m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
--
Thanks,
Graham P Heath
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
Michael Sheets
2018-04-13 11:19:15 UTC
Permalink
Post by Matt Neuburg
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.
Matt Neuburg
2018-04-13 15:20:01 UTC
Permalink
Post by Michael Sheets
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.
Very good explanation, thank you! That's quite right; if I open two files from within the same directory they end up as tabs in the same window, but if I open two files from disparate directories they end up as separate windows.

So what I'm asking for is something like a menu item Open In New Window... so that I can pick a file and have it open in a separate window (rather than having to open the file and _then_ move the tab to a separate window as I'm doing now).

Similarly, it might be nice to have a modifier key such as Shift that I can hold down during a drop onto the TextMate icon and have the file open in a separate window.

m.

--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
jason
2018-04-13 15:28:51 UTC
Permalink
So, I would also really like this feature, or something like it. I would
love to work on two documents that are siblings in the directory hierarchy
in two windows (split vertically).
Post by Michael Sheets
Post by Michael Sheets
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.
Very good explanation, thank you! That's quite right; if I open two files
from within the same directory they end up as tabs in the same window, but
if I open two files from disparate directories they end up as separate
windows.
So what I'm asking for is something like a menu item Open In New Window...
so that I can pick a file and have it open in a separate window (rather
than having to open the file and _then_ move the tab to a separate window
as I'm doing now).
Similarly, it might be nice to have a modifier key such as Shift that I
can hold down during a drop onto the TextMate icon and have the file open
in a separate window.
m.
--
matt neuburg, phd = http://www.apeth.net/matt/
pantes anthropoi tou eidenai oregontai phusei
Programming iOS 11! http://shop.oreilly.com/product/0636920107408.do
iOS 11 Fundamentals! http://shop.oreilly.com/product/0636920107415.do
RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
_______________________________________________
textmate mailing list
http://lists.macromates.com/listinfo/textmate
Allan Odgaard
2018-11-01 06:32:58 UTC
Permalink
Post by Matt Neuburg
Very good explanation, thank you! That's quite right; if I open two
files from within the same directory they end up as tabs in the same
window, but if I open two files from disparate directories they end up
as separate windows.
So what I'm asking for is something like a menu item Open In New
Window... so that I can pick a file and have it open in a separate
window (rather than having to open the file and _then_ move the tab to
a separate window as I'm doing now).
Similarly, it might be nice to have a modifier key such as Shift that
I can hold down during a drop onto the TextMate icon and have the file
open in a separate window.
I added option (⌥) as a way to force a file to open in its own window
(rc.14).

I have noted that people would like to have a preference to set this as
the default behavior.

Joshua Dunham
2018-04-13 16:51:26 UTC
Permalink
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
Post by Michael Sheets
Post by Matt Neuburg
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
http://lists.macromates.com/listinfo/textmate
Continue reading on narkive:
Loading...