when i am editing a sass file and start a new line, then indent (adding a property to a selector, for example) the indent won't stick. the cursor just gets bumped back to line up with the previous line's indentation. is this an issue with my bundle, or some other known issue?
thanks
On 17/02/2012, at 22.07, River Brandon wrote:
when i am editing a sass file and start a new line, then indent (adding a property to a selector, for example) the indent won't stick. the cursor just gets bumped back to line up with the previous line's indentation. is this an issue with my bundle, or some other known issue?
It’s the same as described here: http://lists.macromates.com/textmate/2012-January/034042.html
It sounds like in your case though the patterns are wrong, since they do not see the new line as needing extra indent, and that might be fixable: http://manual.macromates.com/en/appendix#indentation_rules
yes, that describes the problem. the new line doesn't always need extra indent, though, and since it's classic sass syntax (indent-based) i don't know if there's a way to have it detected. i'd be happy with it just respecting my indent (or out-dent) when starting a new line.
thanks
On Feb 17, 2012, at 11:07 AM, Allan Odgaard wrote:
On 17/02/2012, at 22.07, River Brandon wrote:
when i am editing a sass file and start a new line, then indent (adding a property to a selector, for example) the indent won't stick. the cursor just gets bumped back to line up with the previous line's indentation. is this an issue with my bundle, or some other known issue?
It’s the same as described here: http://lists.macromates.com/textmate/2012-January/034042.html
It sounds like in your case though the patterns are wrong, since they do not see the new line as needing extra indent, and that might be fixable: http://manual.macromates.com/en/appendix#indentation_rules
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
On 17/02/2012, at 23.40, River Brandon wrote:
yes, that describes the problem. the new line doesn't always need extra indent, though, and since it's classic sass syntax (indent-based) i don't know if there's a way to have it detected. i'd be happy with it just respecting my indent (or out-dent) when starting a new line.
The thread I linked to¹ describes how to disable these indent corrects “as you type”.
As for adjusting the patterns, is there any indication on line n that line n+1 should be indented? If so, TextMate can be taught about it.
¹ http://lists.macromates.com/textmate/2012-January/034042.html
I am experiencing something similar here and would be more than happy to work through a solution for other readers.
This is my .haml snippet:
- if result_type_field = render '/sub_forms/result_type_field', :f => f, :record => record, :field_name => field_name - else %td{:class => :form_field, :colspan => 1, :style => "text-align: center"} .label.top = same_value_button(record_name, field_name)
if I delete a character at the end of the 2nd line, let's say the 'e' in 'field_name' it removes the indent - very annoying.
Let me know how I can help resolve this.
Thanks,
Ed.
Allan Odgaard-4 wrote:
On 17/02/2012, at 23.40, River Brandon wrote:
yes, that describes the problem. the new line doesn't always need extra indent, though, and since it's classic sass syntax (indent-based) i don't know if there's a way to have it detected. i'd be happy with it just respecting my indent (or out-dent) when starting a new line.
The thread I linked to¹ describes how to disable these indent corrects “as you type”.
As for adjusting the patterns, is there any indication on line n that line n+1 should be indented? If so, TextMate can be taught about it.
¹ http://lists.macromates.com/textmate/2012-January/034042.html
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate
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.
-- Brandon Fryslie http://www.MateWiki.com - A TextMate 2 Wiki
On Tuesday, February 28, 2012 at 10:01 AM, PowerPod wrote:
I am experiencing something similar here and would be more than happy to work through a solution for other readers. This is my .haml snippet:
- if result_type_field
= render '/sub_forms/result_type_field', :f => f, :record => record, :field_name => field_name
- else
%td{:class => :form_field, :colspan => 1, :style => "text-align: center"} .label.top = same_value_button(record_name, field_name) if I delete a character at the end of the 2nd line, let's say the 'e' in 'field_name' it removes the indent - very annoying. Let me know how I can help resolve this. Thanks, Ed. Allan Odgaard-4 wrote:
On 17/02/2012, at 23.40, River Brandon wrote:
yes, that describes the problem. the new line doesn't always need extra indent, though, and since it's classic sass syntax (indent-based) i don't know if there's a way to have it detected. i'd be happy with it just respecting my indent (or out-dent) when starting a new line.
The thread I linked to¹ describes how to disable these indent corrects “as you type”. As for adjusting the patterns, is there any indication on line n that line n+1 should be indented? If so, TextMate can be taught about it. ¹ http://lists.macromates.com/textmate/2012-January/034042.html _______________________________________________ textmate mailing list textmate@lists.macromates.com (mailto:textmate@lists.macromates.com) http://lists.macromates.com/listinfo/textmate
-- View this message in context: http://old.nabble.com/sass-indenting-tp33343212p33408135.html Sent from the textmate users mailing list archive at Nabble.com (http://Nabble.com). _______________________________________________ textmate mailing list textmate@lists.macromates.com (mailto:textmate@lists.macromates.com) http://lists.macromates.com/listinfo/textmate