[TxMt] Re: TextMate 2 turn off auto-indent

Timothy Bates timothy.c.bates at gmail.com
Thu Nov 8 20:26:07 UTC 2012


> On Nov 8, 2012, at 11:47 AM, Freek Dijkstra <public at macfreek.nl> wrote:
>> The MediaWiki bundle in TextMate 2 has a feature that when I type:
>> Line1
>> \s\sLine2
>> 
>> It reindents to:
>> 
>> Line1
>> Line2


I don't replicate this in mediawiki. The mediawiki bundle also, AFAIK does not have its own Indent setting.

We can add one that is helpful.

What pattern do people suggest and I'll push it up.

tim

ps, what's the point of the indent you are making? it has not syntactic meaning does it?



> Auto-indent is nice in response to pasting or hitting ↩, but TextMate 2 has a tendency to alter indentation when you start typing, which is insane. Is that what you mean?
> 
> Add a new “Settings” item to any bundle. (Most people have a personal bundle for stuff like this.) Set the scope to `*` and enter this
> 
>    {   disableIndentCorrections = :true;
>        indentOnPaste = 'simple';
>    }
> 
> One of those is documented in the list archives (maybe the wiki?) and the other in the release notes if you want to know more.



More information about the textmate mailing list