[TxMt] Re: haml embedded ruby outdenting

Edwin Moss ed.moss at 4ssom.com
Wed Feb 29 14:45:10 UTC 2012


This is very helpful instruction. I am a bit confused about the process in creating the new item in the TM2 bundle Editor which from my view does not support "create" anything - only edit.

What am I missing?

Thanks,

Ed.

On Feb 28, 2012, at 12:55 PM, Brandon Fryslie wrote:

In a personal bundle, create a new 'Settings' in the bundle editor.  Add 

 { disableIndentCorrections = '1'; }

to the settings and save it.  Set the scope selector if you would like it to only apply to a certain scope, or leave it blank to allow it to affect all scopes.  I personally turn off the autoIndent since it's wrong much more often that it is correct for Ruby and CoffeeScript, and it's very persistent.  I'm sure once the grammars are rewritten it will work more correctly.

-- 
Brandon Fryslie
http://www.MateWiki.com - A TextMate 2 Wiki

On Tuesday, February 28, 2012 at 12:51 PM, mwean wrote:

> 
> In TM2, embedded ruby lines are sometimes being outdented as I type. Here's
> an example:
> 
> = form_for(@consumer_enrollment, url: [@workflow], method: :put, html: {
> class: 'uniform' }) do |f|
> = f.fields_for(:consumer_prior_authorizations) do |prior_auth_form|
> 
> When typing the second line, hitting backspace at any point or typing the
> first colon causes the line to outdent to the level of the first line. I
> can't see any change in the scope, and it doesn't do this in TM1, so I don't
> know what the issue is. Any ideas?
> --
> View this message in context: http://old.nabble.com/haml-embedded-ruby-outdenting-tp33409296p33409296.html
> Sent from the textmate users mailing list archive at Nabble.com.
> 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate


_______________________________________________
textmate mailing list
textmate at lists.macromates.com
http://lists.macromates.com/listinfo/textmate

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


More information about the textmate mailing list