Files
atom/bundles/css.tmbundle/Macros/Format CSS.tmMacro
2012-09-28 17:36:36 -06:00

101 lines
2.3 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>commands</key>
<array>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>replaceAll</string>
<key>findInProjectIgnoreCase</key>
<true/>
<key>findInProjectRegularExpression</key>
<false/>
<key>findString</key>
<string>(?m)({|;)\s*([-\w]+:)\s*(?=\S)</string>
<key>ignoreCase</key>
<true/>
<key>regularExpression</key>
<true/>
<key>replaceAllScope</key>
<string>selection</string>
<key>replaceString</key>
<string>$1\n$2 </string>
<key>wrapAround</key>
<true/>
</dict>
<key>command</key>
<string>findWithOptions:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>replaceAll</string>
<key>findInProjectIgnoreCase</key>
<true/>
<key>findInProjectRegularExpression</key>
<false/>
<key>findString</key>
<string>(?m)\s*}[ \t]*\n?</string>
<key>ignoreCase</key>
<true/>
<key>regularExpression</key>
<true/>
<key>replaceAllScope</key>
<string>selection</string>
<key>replaceString</key>
<string>\n}\n</string>
<key>wrapAround</key>
<true/>
</dict>
<key>command</key>
<string>findWithOptions:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>replaceAll</string>
<key>findInProjectIgnoreCase</key>
<true/>
<key>findInProjectRegularExpression</key>
<false/>
<key>findString</key>
<string>(?m)\s*{[ \t]*</string>
<key>ignoreCase</key>
<true/>
<key>regularExpression</key>
<true/>
<key>replaceAllScope</key>
<string>selection</string>
<key>replaceString</key>
<string> {</string>
<key>wrapAround</key>
<true/>
</dict>
<key>command</key>
<string>findWithOptions:</string>
</dict>
<dict>
<key>command</key>
<string>alignLeft:</string>
</dict>
<dict>
<key>command</key>
<string>indent:</string>
</dict>
</array>
<key>keyEquivalent</key>
<string>^q</string>
<key>name</key>
<string>Format CSS</string>
<key>scope</key>
<string>source.css</string>
<key>uuid</key>
<string>64180C76-8C8D-4F29-82BE-6096BE1B14D8</string>
</dict>
</plist>