Files
atom/bundles/CoffeeScriptBundle.tmbundle/Commands/Insert Heredoc comment.tmCommand
Corey Johnson & Nathan Sobo f84f9c5dd2 Add bundles and themes
2012-08-27 13:20:22 -07:00

35 lines
825 B
Plaintext

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
column_number = ENV['TM_COLUMN_NUMBER']
whitespace = " " * (column_number.to_i - 1)
print &lt;&lt;-EOS
###
#{whitespace}$0
#{whitespace}###
EOS
</string>
<key>fallbackInput</key>
<string>line</string>
<key>input</key>
<string>none</string>
<key>keyEquivalent</key>
<string>^#</string>
<key>name</key>
<string>Insert Heredoc """ comment</string>
<key>output</key>
<string>insertAsSnippet</string>
<key>scope</key>
<string>source.coffee</string>
<key>uuid</key>
<string>68A86250-0280-11E0-A976-0800200C9A66</string>
</dict>
</plist>