Hi there,
I have a question/suggestion for further TextMate 2 development. Why does it open a new tab for every single file you open in the file browser? If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for. I find myself using file browser most of the time and it's not very comfortable with large projects where you have to scroll up and down through the tree. Why doesn't it behave for example like Chocolat app or Sublime Text where one click in the file browser opens the file without opening a tab and double click or file modification create a tab? At least an option in the Preferences would be absolutely lovely!! What do you think?
Thanks.
- Adam
Adam Štěpánek wrote (Thu, 8 May 2014 19:59:36 +0200):
If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for.
Well, for a peek you always can right-click the file and select "Quick Look..." from the contextual menu. Not the same thing, but maybe sufficient...
Kind regards, Tobias Jung
Unfortunately that’s not a solution. I work a lot with HTML files which means they open up as the actual HTML document in QuickLook and not the source code… Also, you cannot select and copy in QuickLook.
- Adam
On 8 May 2014 at 20:54:31, Tobias Jung (newsgr@tobiasjung.net) wrote:
Adam Štěpánek wrote (Thu, 8 May 2014 19:59:36 +0200):
If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for.
Well, for a peek you always can right-click the file and select "Quick Look..." from the contextual menu. Not the same thing, but maybe sufficient...
Kind regards, Tobias Jung
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
I see. So, I agree that using Quick Look wouldn't work for you. I have to say when I tried Sublime Text I found the behaviour you're looking for rather annoying - but of course, that's probably just because I wasn't used to it.
And I still don't see why this is superior to open an file in a tab, copying the parts you need and then pressing command + w to close the tab again. I wanted to suggest that you might want to record a macro which is doing "copy, then close tab" and bind this macro to a keystroke, but then I saw that TextMate obviously doesn't include "close tab" in the macro recording.
I'd probably turn off this feature if it was introduced in TextMate. But I wouldn't mind if it would be added as long as it _can_ be turned off (as you suggested in the first place).
Kind regards, Tobias Jung
Adam Štěpánek wrote (Thu, 8 May 2014 21:00:34 +0200):
Unfortunately that's not a solution. I work a lot with HTML files which means they open up as the actual HTML document in QuickLook and not the source code... Also, you cannot select and copy in QuickLook.
- Adam
On 8 May 2014 at 20:54:31, Tobias Jung (newsgr@tobiasjung.net) wrote:
Adam Štěpánek wrote (Thu, 8 May 2014 19:59:36 +0200):
If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for.
Well, for a peek you always can right-click the file and select "Quick Look..." from the contextual menu. Not the same thing, but maybe sufficient...
Kind regards, Tobias Jung
If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for.
Well, I do lot of File > Close All Tabs, Close Other Tabs, and Close Tabs to the Right. And I like it that way; I would rather manage my tabs myself.
I haven't figured out why certain tabs are always open whenever I open my project, no matter how much I close them - but that's a different question!
m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
But why do you need to think about closing and managing tabs if you don’t need them open in the first place? I always thought that if you’re working in a text editor like this with the tree browser, the purpose of the tab bar is to keep there your favourite files for the session. And it certainly doesn’t imply that every file you open is your “favourite”. Why to keep them both in the tab bar and in the file browser?
I hope you agree with me that the more tabs you have, the more confusing the orientation is and once you exceed a certain limit (probably different for each of us), the time you need to locate the file in there is actually greater than to navigate the file in the file browser. It gets even worse if you work with files with the same names in different subfolders because they appear the same in the tab bar.
These are my arguments why I would really love to see this incorporated in the TextMate preferences. Please, whoever responsible for development is reading this (if anyone), make TextMate even better editor than it is now by including this feature!
- Adam
On 9 May 2014 at 17:30:40, Matt Neuburg (matt@tidbits.com) wrote:
If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for.
Well, I do lot of File > Close All Tabs, Close Other Tabs, and Close Tabs to the Right. And I like it that way; I would rather manage my tabs myself.
I haven't figured out why certain tabs are always open whenever I open my project, no matter how much I close them - but that's a different question!
m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 7! http://shop.oreilly.com/product/0636920031017.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
And I still don't see why this is superior to open an file in a tab, copying the parts you need and then pressing command + w to close the tab again. Well, that is really annoying because you have to keep thinking about actually closing the tabs. Instead you could just open the tabs you need at the beginning of your work and then arbitrarily browse through the files without having to think about the tabs. You’d only have those you really need easily accessible from the tab bar.
As you can see, it works for other apps so I’d be immensely happy to see this feature appear in TextMate (of course, as an option). But is there something I can do about it? Is there someone specific I could ask?
- Adam
On 9 May 2014 at 10:16:25, Tobias Jung (newsgr@tobiasjung.net) wrote:
I see. So, I agree that using Quick Look wouldn't work for you. I have to say when I tried Sublime Text I found the behaviour you're looking for rather annoying - but of course, that's probably just because I wasn't used to it.
And I still don't see why this is superior to open an file in a tab, copying the parts you need and then pressing command + w to close the tab again. I wanted to suggest that you might want to record a macro which is doing "copy, then close tab" and bind this macro to a keystroke, but then I saw that TextMate obviously doesn't include "close tab" in the macro recording.
I'd probably turn off this feature if it was introduced in TextMate. But I wouldn't mind if it would be added as long as it _can_ be turned off (as you suggested in the first place).
Kind regards, Tobias Jung
Adam Štěpánek wrote (Thu, 8 May 2014 21:00:34 +0200):
Unfortunately that's not a solution. I work a lot with HTML files which means they open up as the actual HTML document in QuickLook and not the source code... Also, you cannot select and copy in QuickLook.
- Adam
On 8 May 2014 at 20:54:31, Tobias Jung (newsgr@tobiasjung.net) wrote: Adam Štěpánek wrote (Thu, 8 May 2014 19:59:36 +0200):
If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for.
Well, for a peek you always can right-click the file and select "Quick Look..." from the contextual menu. Not the same thing, but maybe sufficient... Kind regards, Tobias Jung
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 11 May 2014, at 3:20, Adam Štěpánek wrote:
[…] that is really annoying because you have to keep thinking about actually closing the tabs […]
I guess that depends on how you work. I open files to edit them, with what you suggest I would have to remember to actually “open” them after having opened them.
And if I actually did want to only peek at a file, I would still need to tell TextMate when I was done, so I could go back to the previous document, “close” seems like a natural way to do that.
[…] is there something I can do about it? Is there someone specific I could ask?
Your best option is to submit a pull request.
OK. My last defending response :-) Yes, it depends on how you work. What you describe works well in a situation where you switch to other file to edit it and then back but I usually browse through several files before I find what I need. So it’s not just opening a file, closing the tab and back but it’s more like: opening a file, closing the tab, opening another file, closing the tab etc. And if TextMate didn’t automatically open the tab, you could just skip the closing part and you would go like: open file #1, open file #2, file #3 etc.
I could submit a pull request if I knew how to program it :-)
- Adam
On 11 May 2014 at 17:44:16, Allan Odgaard (mailinglist@textmate.org) wrote:
On 11 May 2014, at 3:20, Adam Štěpánek wrote:
[…] that is really annoying because you have to keep thinking about actually closing the tabs […]
I guess that depends on how you work. I open files to edit them, with what you suggest I would have to remember to actually “open” them after having opened them.
And if I actually did want to only peek at a file, I would still need to tell TextMate when I was done, so I could go back to the previous document, “close” seems like a natural way to do that.
[…] is there something I can do about it? Is there someone specific I could ask?
Your best option is to submit a pull request.
_______________________________________________ textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
According to the manual Textmate closes obsolete tabs when the tab bar gets filled up:
2.3.2 Closing Tabs A common problem is being left with too many open tabs. In an attempt to counter that, TextMate will automatically close tabs that hasn’t been used in a while, when the tab bar overflows.
Additionally there are a few explicit ways that you can close multiple tabs in a single action:
Hold down option (⌥) when opening a file either via the file browser or file chooser. For the latter, you normally open files via return (↩) so here you would press option-return (⌥↩). Use File → Close Other Tabs (⌃⌘W) or File → Close All Tabs (⌃⌥⌘W). Right-click a tab and select any of the close actions, e.g. Close Tabs to the Right. Sometimes you have documents that should stay open, like a to-do list, which may prevent the use of a batch close action. In this case, right-click the tab in question and select Sticky (toggle). When a tab is made sticky, the batch close actions will leave it open.
The problem is that tabs are allowed shrunk to about 4 characters + ellipsis before tab removal starts to kick in. Maybe it should start to remove tabs a bit earlier than that?
Personally I often set the tabs I really want to keep as ‘Sticky’ (right click on the tab) and use the ‘Close Other Tabs’ a lot, in conjunction with the ‘Go to File’ menu (⌘T).
Regards, Bas
On 8 May 2014, at 20:54 , Tobias Jung newsgr@tobiasjung.net wrote:
Adam Štěpánek wrote (Thu, 8 May 2014 19:59:36 +0200):
If you're working on a large project where you actually edit only several files at the time but you need to peek into other files from time to time as well (usually as a one-time look), the tab bar gets full very quickly and it's almost impossible to find there the file you're looking for.
Well, for a peek you always can right-click the file and select "Quick Look..." from the contextual menu. Not the same thing, but maybe sufficient...
Kind regards, Tobias Jung
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate