[TxMt] Re: YAML bundle doesn't work for fold/unfold

Toru Mori toru.mori at coupa.com
Mon Sep 22 21:18:03 UTC 2014


Thanks for the hint.

I've experimented more than a couple of things and found the following
settings works for me, at least it's much better than broken.

Under 'Budles' => 'Edit' => 'Settings' => 'Indenting':

{ disableIndentCorrections = :true;
indentOnPaste = 'simple';
foldingStartMarker = '^\s*"""(?=.)(?!.*""")';
foldingIndentedBlockStart = '^\s*.*(:|-) ?(&\w+)?(\{[^}"'']*|\([^)"'']*)?$';
foldingIndentedBlockIgnore = '^\s*#';
}

foldingStartMarker was copied from Python setting.
foldingIndentedBlockIgnore was copied from the 'Fold on the Dotted Line'
section in http://blog.macromates.com/2012/the-layout-engine/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20140922/0bc86954/attachment.html>


More information about the textmate mailing list