Can anyone explain why some of my project folders open empty and others open with the previously open tabs open in them? The inconsistency is puzzling. The folders themselves are consistent with themselves, just not with each other. :)
m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On 16 Dec 2014, at 23:40, Matt Neuburg wrote:
Can anyone explain why some of my project folders open empty and others open with the previously open tabs open in them?
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?
On Dec 28, 2014, at 3:24 AM, Allan Odgaard mailinglist@textmate.org wrote:
On 16 Dec 2014, at 23:40, Matt Neuburg wrote:
Can anyone explain why some of my project folders open empty and others open with the previously open tabs open in them?
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:
Let me prepare you for what you will see. Two folders are open, with two tabs open in each. I close both tabs. Then I reopen both tabs. One opens with both tabs present; the other opens empty. What I'm asking is: what is the reason for this _difference_? This behavior is absolutely consistent per project folder; I know very well which folder behaves which way. I just want to know why. Thanks. m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On Dec 28, 2014, at 8:36 AM, Matt Neuburg matt@tidbits.com wrote:
I close both tabs. Then I reopen both tabs.
I mean I close both folders and reopen both folders. m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On 28 Dec 2014, at 23:36, Matt Neuburg wrote:
On Dec 28, 2014, at 3:24 AM, Allan Odgaard mailinglist@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.
On Jan 9, 2015, at 3:32 AM, Allan Odgaard mailinglist@textmate.org wrote:
On 28 Dec 2014, at 23:36, Matt Neuburg wrote:
On Dec 28, 2014, at 3:24 AM, Allan Odgaard mailinglist@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.
There is _not_. Now that you've given me this magic command to play with, I tried also this:
gromit:~ mattneuburg$ sqlite3 ~/Library/Application\ Support/TextMate/RecentProjects.db 'SELECT key FROM kvdb' /Volumes/jansen/Users/mattleopard/anger/Word Process/web sites/albumsite /Users/mattneuburg/anger/Word Process/web sites/maryBrownWebSite/marybrownsite /Users/mattneuburg/anger/Word Process/web sites/apethWebSite/apeth /Users/mattneuburg/anger/Word Process/web sites/fionaSite/fionasite /Users/mattneuburg/desire/ruby/rubyFrontier related/rubyFrontier /Users/mattneuburg/Desktop/Testing /Users/mattneuburg/anger/Word Process/web sites/blogSite/blognew /Users/mattneuburg/anger/Word Process/web sites/emperorWebSite/site
The ones listed are the ones where tab contents are remembered. My two books, where tab contents are forgotten, are missing.
Could it have something to do with characters in the path? I see from the above that spaces are okay, so that can't be the problem. But my books are O'Reilly books so they are in a folder whose name contains the word "O'Reilly". Could it be that TM does not like the apostrophe in the pathname?
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.
Tried that; it didn't magically change anything. I guess I was wondering whether there might be some hidden preference that could account for this behavior, but I take it that there is not. I'm leaning towards the apostrophe hypothesis! :) m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On Fri, Jan 9, 2015 at 1:29 PM, Matt Neuburg matt@tidbits.com wrote:
Tried that; it didn't magically change anything. I guess I was wondering whether there might be some hidden preference that could account for this behavior, but I take it that there is not. I'm leaning towards the apostrophe hypothesis! :) m.
Yup. The SQL standard says that single quotes have to be escaped by using another single quote.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 8! http://shop.oreilly.com/product/0636920034261.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 Jan 9, 2015, at 8:00 PM, Ronald Wampler rdwampler@gmail.com wrote:
On Fri, Jan 9, 2015 at 1:29 PM, Matt Neuburg matt@tidbits.com wrote:
Tried that; it didn't magically change anything. I guess I was wondering whether there might be some hidden preference that could account for this behavior, but I take it that there is not. I'm leaning towards the apostrophe hypothesis! :) m.
Yup. The SQL standard says that single quotes have to be escaped by using another single quote.
Right, but I'm not programming SQL; I'm using TextMate. It would be TextMate's job to handle this escaping, not mine. m.
-- matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On 10 Jan 2015, at 11:52, Matt Neuburg wrote:
Yup. The SQL standard says that single quotes have to be escaped by using another single quote.
Right, but I'm not programming SQL; I'm using TextMate. It would be TextMate's job to handle this escaping, not mine. m.
I don’t think Ronald was implying you had to do the escaping, just pointing out where the problem lies, it’s a vendor library that TextMate uses, which is based on sqlite3, and lacks the escaping, for which Ronald submitted a PR: https://github.com/textmate/kvdb/pull/1
Sorry, that wasn't evident from the answer. Didn't mean to bite the feeding hand. I apologize. I'm delighted if I've stumbled onto a fixable bug! It's all O'Reilly's fault really... :) m.
-- Sent from my iPad, but I am not a dork. Really. matt neuburg, phd = http://www.apeth.net/matt/ pantes anthropoi tou eidenai oregontai phusei Programming iOS 8! http://shop.oreilly.com/product/0636920034261.do iOS 7 Fundamentals! http://shop.oreilly.com/product/0636920032465.do RubyFrontier! http://www.apeth.com/RubyFrontierDocs/default.html
On Jan 9, 2015, at 9:18 PM, Allan Odgaard mailinglist@textmate.org wrote:
On 10 Jan 2015, at 11:52, Matt Neuburg wrote:
Yup. The SQL standard says that single quotes have to be escaped by using another single quote.
Right, but I'm not programming SQL; I'm using TextMate. It would be TextMate's job to handle this escaping, not mine. m.
I don’t think Ronald was implying you had to do the escaping, just pointing out where the problem lies, it’s a vendor library that TextMate uses, which is based on sqlite3, and lacks the escaping, for which Ronald submitted a PR: https://github.com/textmate/kvdb/pull/1
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate