[TxMt] Re: Indented soft-wrap
Anthony V. Pulido
anthony.pulido at gmail.com
Thu Aug 2 23:27:28 UTC 2012
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 at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate
>
>
--
View this message in context: http://old.nabble.com/Indented-soft-wrap-tp32983136p34248591.html
Sent from the textmate users mailing list archive at Nabble.com.
More information about the textmate
mailing list