[TxMt] Re: [TM1] Fold status of document

Allan Odgaard mailinglist at textmate.org
Wed Jul 18 10:26:44 UTC 2012


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}}



More information about the textmate mailing list