[TxMt] Re: mystery of the open tabs

Allan Odgaard mailinglist at textmate.org
Fri Jan 9 11:32:22 UTC 2015


On 28 Dec 2014, at 23:36, Matt Neuburg wrote:

> On Dec 28, 2014, at 3:24 AM, Allan Odgaard <mailinglist at textmate.org> 
> wrote:
>> The project folders that open empty: Were they closed with open tabs? 
>> Were they renamed/moved?
>>
>> If a project folder open empty, if you open some tabs in that window, 
>> close the window, and re-open the folder, does it remember the open 
>> tabs?
>
> No, it doesn't. That's the point. I've made a movie! Here it is:

Can you try run this command in terminal:

    sqlite3 ~/Library/Application\ Support/TextMate/RecentProjects.db 
'SELECT key FROM kvdb WHERE key LIKE "%ios7bookshorter%"'

This should show if there is any session info for folders with 
‘ios7bookshorter’ in the path.

You can also run this to get (hexdump of the binary) data:

    sqlite3 ~/Library/Application\ Support/TextMate/RecentProjects.db 
'SELECT value FROM kvdb WHERE key LIKE "%ios7bookshorter%"'|xxd

> […] I know very well which folder behaves which way. I just want to 
> know why.

There is no designed reason it should act this way, and it’s not 
something I have heard of before. The only thing I can think of is 
symbolic names or maybe mounted file system that doesn’t have a 
canonical name (since session info is based on the path string).

Given the two commands above, can you check there is actually info 
stored, that the hexdump changes if you make changes to open files.

Also try select file in file browser, is this state remembered?

Lastly try remove ~/Library/Application\ 
Support/TextMate/RecentProjects.db and see if it fixes it. If it does, 
please send me the old file for further diagnosis.


More information about the textmate mailing list