Skip to content

Commit

Permalink
[AltMacros] moved Macros to Macro bundle
Browse files Browse the repository at this point in the history
  • Loading branch information
kematzy committed Mar 16, 2012
1 parent 1082b3c commit 2e80107
Show file tree
Hide file tree
Showing 6 changed files with 104 additions and 3 deletions.
40 changes: 40 additions & 0 deletions _Alt_Macros.tmbundle/Macros/Dashify (Replace _ with -).tmMacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?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>commands</key>
<array>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>replaceAll</string>
<key>findInProjectIgnoreCase</key>
<false/>
<key>findInProjectRegularExpression</key>
<false/>
<key>findString</key>
<string>_</string>
<key>ignoreCase</key>
<false/>
<key>regularExpression</key>
<false/>
<key>replaceAllScope</key>
<string>selection</string>
<key>replaceString</key>
<string>-</string>
<key>wrapAround</key>
<true/>
</dict>
<key>command</key>
<string>findWithOptions:</string>
</dict>
</array>
<key>keyEquivalent</key>
<string>^m</string>
<key>name</key>
<string>Dashify (Replace _ with -)</string>
<key>uuid</key>
<string>98AF52D9-EAD9-4A4B-9F99-5B4500167E0D</string>
</dict>
</plist>
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
<string>findWithOptions:</string>
</dict>
</array>
<key>keyEquivalent</key>
<string>^m</string>
<key>name</key>
<string>Replace spaces with '-' dashes</string>
<key>uuid</key>
Expand Down
40 changes: 40 additions & 0 deletions _Alt_Macros.tmbundle/Macros/Underscore (Replace - with _ ).tmMacro
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
<?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>commands</key>
<array>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>replaceAll</string>
<key>findInProjectIgnoreCase</key>
<false/>
<key>findInProjectRegularExpression</key>
<false/>
<key>findString</key>
<string>-</string>
<key>ignoreCase</key>
<false/>
<key>regularExpression</key>
<false/>
<key>replaceAllScope</key>
<string>selection</string>
<key>replaceString</key>
<string>_</string>
<key>wrapAround</key>
<true/>
</dict>
<key>command</key>
<string>findWithOptions:</string>
</dict>
</array>
<key>keyEquivalent</key>
<string>^m</string>
<key>name</key>
<string>Underscore (Replace - with _ )</string>
<key>uuid</key>
<string>DD7642CE-E560-4FE8-9BC1-F09899E6F5CD</string>
</dict>
</plist>
23 changes: 22 additions & 1 deletion _Alt_Macros.tmbundle/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,36 @@
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>mainMenu</key>
<dict>
<key>items</key>
<array>
<string>0BC57985-FE6F-425F-ABD0-16AA0BA03317</string>
<string>98AF52D9-EAD9-4A4B-9F99-5B4500167E0D</string>
<string>DD7642CE-E560-4FE8-9BC1-F09899E6F5CD</string>
<string>D9F1B76F-3DC0-4C5E-9260-924C11BC377F</string>
<string>9D54E8A5-5E4A-45BC-A347-7BB71093492E</string>
<string>5B5193D6-91EE-4061-AED4-2D3B3A2D78E9</string>
<string>0717A19E-19C3-4D2B-B920-8373BF060FE7</string>
<string>3A571339-3865-40CC-A842-1FA5F672C171</string>
<string>1569FC27-20D3-47C3-86C6-74E332A3F21A</string>
</array>
<key>submenus</key>
<dict/>
</dict>
<key>name</key>
<string> Alt Macros</string>
<key>ordering</key>
<array>
<string>0BC57985-FE6F-425F-ABD0-16AA0BA03317</string>
<string>DD7642CE-E560-4FE8-9BC1-F09899E6F5CD</string>
<string>98AF52D9-EAD9-4A4B-9F99-5B4500167E0D</string>
<string>0717A19E-19C3-4D2B-B920-8373BF060FE7</string>
<string>D9F1B76F-3DC0-4C5E-9260-924C11BC377F</string>
<string>9D54E8A5-5E4A-45BC-A347-7BB71093492E</string>
<string>5B5193D6-91EE-4061-AED4-2D3B3A2D78E9</string>
<string>0717A19E-19C3-4D2B-B920-8373BF060FE7</string>
<string>3A571339-3865-40CC-A842-1FA5F672C171</string>
<string>1569FC27-20D3-47C3-86C6-74E332A3F21A</string>
</array>
<key>uuid</key>
<string>B9ECDD2C-9E81-48ED-B7C9-66B66E8D6164</string>
Expand Down
2 changes: 0 additions & 2 deletions __Commands.tmbundle/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
<string> Commands</string>
<key>ordering</key>
<array>
<string>1569FC27-20D3-47C3-86C6-74E332A3F21A</string>
<string>9D54E8A5-5E4A-45BC-A347-7BB71093492E</string>
<string>7C143526-D838-4409-A41C-1621187F7F57</string>
<string>44A46708-93CF-402C-9803-1A3EC2E748DC</string>
</array>
Expand Down

0 comments on commit 2e80107

Please sign in to comment.