Hello everyone,
I've just installed TextMate 2 and have been trying to enable soft wrap indenting. I found this mailing list and I see that the setting
{ indentedSoftWrap = { match = '\A\s*[-*]\s+'; format = '${0/\S/ /g}'; }; }
is required to enable it globally, but I'm not quite sure where to put it. If I knew what "empty scope selector" meant, that would be a great help. As a start, I thought I might try to enable it just for LaTeX, but have been unsuccessful. I've opened the Bundle Editor and inserted the above into the Miscellaneous preference in the LaTeX bundle, but soft wrapping, which is enabled, has not changed. Would anyone know what I've missed?
Anthony Pulido
Allan Odgaard-4 wrote:
On 16 Dec 2011, at 06:12, Trevor Harmon wrote:
That works great for the scopes where it's defined, but many of the scopes where I want soft wrap indentation (XML comments, Java source code) don't have it. As an alternative to inserting indentedSoftWrap in all the bundles I use, is it possible to specify a single global fall-back that performs a "dumb" soft wrap indentation (e.g., indenting to the same level as the previous line, or same level plus 1)? In other words, is there a way to tell TextMate that I want indented soft wrap *everywhere*? Thanks,
The empty scope selector will match all scopes (and thus be the fallback).
And “same indent as last line plus one” could e.g. be:
{ indentedSoftWrap = { match = '\A[ \t]*'; format = '$0\t'; }; }
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate