So now I'm going to ask formally the question I touched on in a previous note.
When I open my project, the same two tabs are always open. Why? They are not "sticky". But no matter how I manipulate tabs during the course of a session, when I close the project and quit TextMate and then open this project again later, there are those same two tabs open.
I'd like a hint as to where this setting is stored so that I can do something about it. Thanks! 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
Are you sure its not just because "Preferences -> Open Documents from Last Session" is ticked?
On 10 May 2014 17:09, Matt Neuburg matt@tidbits.com wrote:
So now I'm going to ask formally the question I touched on in a previous note.
When I open my project, the same two tabs are always open. Why? They are not "sticky". But no matter how I manipulate tabs during the course of a session, when I close the project and quit TextMate and then open this project again later, there are those same two tabs open.
I'd like a hint as to where this setting is stored so that I can do something about it. Thanks! 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
Yes, because it's not. No _documents_ are opening when TextMate starts up. But when I open a particular project (manually), the same two tabs are always open within it. m.
On May 10, 2014, at 2:16 PM, Carpii UK carpii.uk@gmail.com wrote:
Are you sure its not just because "Preferences -> Open Documents from Last Session" is ticked?
On 10 May 2014 17:09, Matt Neuburg matt@tidbits.com wrote: So now I'm going to ask formally the question I touched on in a previous note.
When I open my project, the same two tabs are always open. Why? They are not "sticky". But no matter how I manipulate tabs during the course of a session, when I close the project and quit TextMate and then open this project again later, there are those same two tabs open.
I'd like a hint as to where this setting is stored so that I can do something about it. Thanks! 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
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- 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
It might be worth trying to move ~/Library/Caches/com.macromates.TextMate out the way, and see if that affects it. Im not a TM dev so Im just guessing really.
I know TextMate 1 had a real concept of project files (in that it would restore open files, when you next opened the project).
But TM2 doesn't really have projects. Its just opening a disk browser, that makes me think any settings like this would be in Caches directory, since I cant think where else it would persist
You could also try opening from command line 'mate <dir>' and see if it still has the same problem
On 10 May 2014 22:38, Matt Neuburg matt@tidbits.com wrote:
Yes, because it's not. No _documents_ are opening when TextMate starts up. But when I open a particular project (manually), the same two tabs are always open within it. m.
On May 10, 2014, at 2:16 PM, Carpii UK carpii.uk@gmail.com wrote:
Are you sure its not just because "Preferences -> Open Documents from
Last Session" is ticked?
On 10 May 2014 17:09, Matt Neuburg matt@tidbits.com wrote: So now I'm going to ask formally the question I touched on in a previous
note.
When I open my project, the same two tabs are always open. Why? They are
not "sticky". But no matter how I manipulate tabs during the course of a session, when I close the project and quit TextMate and then open this project again later, there are those same two tabs open.
I'd like a hint as to where this setting is stored so that I can do
something about it. Thanks! 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
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- 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
On May 10, 2014, at 3:58 PM, Carpii UK carpii.uk@gmail.com wrote:
Im not a TM dev so Im just guessing really.
What I'm trying to elicit is whether this is a bug. 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
On 10 May 2014, at 23:09, Matt Neuburg wrote:
[…] When I open my project, the same two tabs are always open. Why?
From release notes:
* TextMate will now remember open tabs for “project folders”. This means that if you run `mate «folder»`, open a few tabs and close the window, then if you later open the same folder, TextMate will restore the open tabs (and file browser state).
You can see which folders TextMate has stored state for via _File → Open Favorites…_ (⇧⌘O) — probably soon to be renamed “Open Project…”.
The feature can be disabled using:
defaults write com.macromates.TextMate.preview disableFolderStateRestore -bool YES
The state is stored in `~/Library/Application Support/TextMate/RecentProjects.db` so you can delete this file to clear all state. You can also bring up the _File → Open Favorites…_ dialog and press ⌘⌫ for each entry where you wish to clear the saved state (and remove that folder from the history).
On May 11, 2014, at 8:26 AM, Allan Odgaard mailinglist@textmate.org wrote:
TextMate will now remember open tabs for “project folders”. This means that if you run mate «folder», open a few tabs and close the window, then if you later open the same folder, TextMate will restore the open tabs (and file browser state).
Yes but that is not what's happening. If that were happening, I'd be happy. I don't want to disable it, and I have not:
The domain/default pair of (/Users/mattneuburg/Library/Preferences/com.macromates.TextMate.preview, disableFolderStateRestore) does not exist
What I'm seeing is this.
I open the project and tab A and tab B are open. I open tab C and close tab A and tab B. I save, sacrifice goats, quit, whatever.
I open the project and tab A and tab B are open again. Why? And what happened to C?
That is what I'm curious about.
I've now done
rm 'Library/Application Support/TextMate/RecentProjects.db'
and this has fixed it. I guess what I'm suggesting, though, is that the transition to the new "remember open tabs" feature may itself have some issues.
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
On May 11, 2014, at 9:14 AM, Matt Neuburg matt@tidbits.com wrote:
I've now done
rm 'Library/Application Support/TextMate/RecentProjects.db'
and this has fixed it. I guess what I'm suggesting, though, is that the transition to the new "remember open tabs" feature may itself have some issues.
Okay, so now what's happening is that NO tabs are remembered. The tab state of the project is now NOT being remembered from last time, even though I have not disabled this feature. 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
On 12 May 2014, at 1:30, Matt Neuburg wrote:
[…] now what's happening is that NO tabs are remembered. The tab state of the project is now NOT being remembered from last time, even though I have not disabled this feature. m.
Did you close the window or quit TextMate?
The per-window state is saved when closing a (project) window, but not when quit’ing TextMate. I hadn’t bothered handling this case because with session restore, the effect would be the same (but you having disabled this, would likely be why you’re seeing something else).
If this is the case, try quit using ⌥⌘Q — this is “close all windows and quit”.
I can confirm this! But I regard it as a bug. It should make no difference whether I close the window and then quit or I simply quit.
So, right now, I can work around the problem by setting up my tabs the way I want them to come back next time, and then closing the window, and then quitting.
If I merely quit, I get the zombie tabs - the state I see is not like the state I saw previously. That, I now understand, is because we are reverting to the last state that _was_ saved. But I'm suggesting that if you're going to have this feature, it should work for everybody, not just people whose Mac system preferences settings happen to match yours. m.
On May 11, 2014, at 7:13 PM, Allan Odgaard mailinglist@textmate.org wrote:
On 12 May 2014, at 1:30, Matt Neuburg wrote:
[…] now what's happening is that NO tabs are remembered. The tab state of the project is now NOT being remembered from last time, even though I have not disabled this feature. m.
Did you close the window or quit TextMate?
The per-window state is saved when closing a (project) window, but not when quit’ing TextMate. I hadn’t bothered handling this case because with session restore, the effect would be the same (but you having disabled this, would likely be why you’re seeing something else).
If this is the case, try quit using ⌥⌘Q — this is “close all windows and quit”.
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
-- 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