TM1 used to remember the fold status of my documents. I'd close a document leaving most of it folded away apart from the sub I was working on, then it would be easy to pick up from where I left off when I re-opened the document.
It doesn't seem to remember the fold status any more. Anyone else seen this behaviour?
It's not critical, it just bugs me every time I open a document I folded neatly away.
On 17/07/2012, at 10.26, Justin Catterall wrote:
[…] It doesn't seem to remember the fold status any more […]
Are you saving files on a local file system?
TextMate stores folding data in extended attributes. These are not supported for all file systems.
It could also be that your file is too big for the extended attributes to contain the metadata.
Lastly it can also be disabled via ‘defaults write …’, but you would probably know if you had issued such command.
To debug extended attributes use ‘ls -l’ and look for a ‘@’, this indicates the file has them. Use ‘ls -l@’ to list which it has, or ‘xattr -p’ to print them, e.g.:
% ls -l|grep @ -rw-r--r--@ 1 duff staff 3907 Jul 4 11:44 Makefile.duff -rw-r--r--@ 1 duff staff 407 Jul 6 20:30 README
% ls -l@ Makefile.duff README -rw-r--r--@ 1 duff staff 3907 Jul 4 11:44 Makefile.duff com.macromates.selectionRange 2 com.macromates.visibleRect 22 -rw-r--r--@ 1 duff staff 407 Jul 6 20:30 README com.macromates.selectionRange 1
% xattr -p com.macromates.visibleRect Makefile.duff {{0, 808}, {721, 605}}
On 18 Jul 2012, at 11:26, Allan Odgaard wrote:
On 17/07/2012, at 10.26, Justin Catterall wrote:
[…] It doesn't seem to remember the fold status any more […]
Are you saving files on a local file system?
TextMate stores folding data in extended attributes. These are not supported for all file systems.
Ah, that's probably it, these are on an ext3 partition on Debian/Linux system, mounted over SMB.
I think the samba install must have been broken to stop allowing extended attributes. I wonder what I did.
Thanks for the clue, I'll investigate our Samba set up.