[TxMt] Re: Indented soft-wrap

Trevor Harmon trevor at vocaro.com
Fri Dec 16 05:12:04 UTC 2011


On Dec 15, 2011, at 1:12 PM, Allan Odgaard wrote:

> On 15 Dec 2011, at 19:40, mwean wrote:
> 
>> My understanding is that soft-wrapped lines can now be indented, but I can't figure out how to enable that. Is this feature implemented?
> 
> Indented soft wrap is controlled via scoped settings. For example for the `markup.list.unnumbered` scope we could add a setting a la:
> 
>    {   indentedSoftWrap = {
>            match  = '\A\s*[-*]\s+';
>            format = '${0/\S/ /g}';
>        };
>    }

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,

Trevor



More information about the textmate mailing list