handcrafted / handcrafted-haml-textmate-bundle

A Handcrafted HAML TextMate bundle to aid in rapid HAML development.
http://gethandcrafted.com/
225 stars 49 forks source link

Indentation issue with Textmate 2 #13

Open aj2jewellers opened 12 years ago

aj2jewellers commented 12 years ago

When I start editing a line that was indented the indentation is removed. It doesn't happen with Textmate 1 just version 2. I'm running build 9147 on OS 10.8

aj2jewellers commented 12 years ago

I found a work-around by creating a new setting with { disableIndentCorrections = '1'; } Would be useful to have this included as a default if we can't have indentation rules working.

Sjors commented 12 years ago

I can confirm both the bug and the workaround suggested by @aj2jewellers. However disabling all indent corrections seems a bit overkill. I'm using TextMate 2.0 (9307). Some of my bundles are:

My bundles are automatically updated.

Sjors commented 12 years ago

I added "disableIndentCorrections" with a value of 1 to the Variables tab in Preferences. It solves part of the problem. When editing an existing line it no longer destroys the indentation. However when I start a new line, press tab and start typing, it does still remove the indentation.

Update: actually it still misbehaves some of the time. I can't really find the pattern here.

Sjors commented 12 years ago

I'm seeing the same behavior in other bundles, e.g. Ruby. Perhaps it's a bug in TextMate?