[TxMt] Re: Python indentation

Iain Allan iain_allan at mac.com
Wed Mar 5 20:32:49 UTC 2014


Thanks Rob that was it.
I changed disableIndentCorrections from ‘1’ to ‘emptyLines’ in the Python bundle and it has reverted to the old behaviour.
{	disableIndentCorrections = 'emptyLines';
	indentOnPaste = 'simple';
}
Pretty sure I have was using default settings before.
—
Iain

> On alpha.9517 the auto indentation seems to have changed that if you 
> leave a blank line after a function TextMate will keep indenting 
> subsequent lines.
>
> def boo():
>  """docstring for boo"""
>  pass
>
> print   <— this line is automatically indented unless you use ⌘[
>
> I had a look in the Python bundle and the language grammar is 
> unchanged.    Am I missing a setting somewhere to revert to the old 
> behaviour?

 From the release notes…

> It is now possible to set the `disableIndentCorrections` to 
> `emptyLines`. This will disable the indent corrections only when 
> typing on empty lines, which has been made default for HTML.

I’m sure it has something to do with that, though it doesn’t sound 
like anything should change (outside of HTML) if you were still using 
default settings. Then again, if you were using default settings, the 
behavior you’ve noticed would not be new. (I disabled it a long time 
ago.)

I’m using “emptyLines” now just to see if there’s a benefit. 
Before, I was using “:true”. I haven’t figured out the difference 
yet.

-- 
Rob McBroom
http://www.skurfer.com/
-------------- next part --------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20140305/b35a8ad9/attachment.html>


More information about the textmate mailing list