Skip to content

Commit

Permalink
Don't re-indent code as it is being commented in/out.
Browse files Browse the repository at this point in the history
When commenting or uncommenting text we want to leave the text as it is rather than indenting to the point of the first like a normal command.

Fixes textmate/textmate#387, however it will require a TextMate update as this flag is not currently enabled in 2.0.
  • Loading branch information
infininight committed Feb 7, 2013
1 parent e3c3e64 commit 53579ed
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions Commands/Toggle comment.plist
Expand Up @@ -154,17 +154,27 @@ when "block" # apply comment around selection
end
end
</string>
<key>disableOutputAutoIndent</key>
<true/>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
<string>selection</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>@/</string>
<key>name</key>
<string>Comment Line / Selection</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>snippet</string>
<key>outputLocation</key>
<string>replaceInput</string>
<key>uuid</key>
<string>73EAE95D-A09C-4FC2-B4E3-42505678B57E</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>

0 comments on commit 53579ed

Please sign in to comment.