Skip to content

Commit

Permalink
Removed command to insert matching start bracket because it's just to…
Browse files Browse the repository at this point in the history
…o flaky with a file full of identical brackets. (Might add it back in later once it's tweaked) Instead, added macro to overtype ')'
  • Loading branch information
Jason Sallis committed Oct 7, 2008
1 parent c968da7 commit 2261f36
Show file tree
Hide file tree
Showing 3 changed files with 68 additions and 321 deletions.
320 changes: 0 additions & 320 deletions Commands/Insert Matching Start Bracket.tmCommand

This file was deleted.

68 changes: 68 additions & 0 deletions Macros/Overtype ')'.tmMacro
@@ -0,0 +1,68 @@
<?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>
<string>x</string>
<key>command</key>
<string>insertText:</string>
</dict>
<dict>
<key>command</key>
<string>moveLeft:</string>
</dict>
<dict>
<key>command</key>
<string>moveRightAndModifySelection:</string>
</dict>
<dict>
<key>command</key>
<string>moveRightAndModifySelection:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>action</key>
<string>replaceAll</string>
<key>findInProjectIgnoreCase</key>
<false/>
<key>findString</key>
<string>x(\)|(.?))</string>
<key>ignoreCase</key>
<false/>
<key>regularExpression</key>
<true/>
<key>replaceAllScope</key>
<string>selection</string>
<key>replaceString</key>
<string>(?2:\))$1</string>
<key>wrapAround</key>
<false/>
</dict>
<key>command</key>
<string>findWithOptions:</string>
</dict>
<dict>
<key>command</key>
<string>moveLeft:</string>
</dict>
<dict>
<key>command</key>
<string>moveRight:</string>
</dict>
</array>
<key>keyEquivalent</key>
<string>)</string>
<key>name</key>
<string>Overtype ')'</string>
<key>scope</key>
<string>source.nu</string>
<key>scopeType</key>
<string>local</string>
<key>uuid</key>
<string>BC242329-75D6-4222-BC4F-43ADD863FCB9</string>
</dict>
</plist>
1 change: 0 additions & 1 deletion info.plist
Expand Up @@ -196,7 +196,6 @@
<string>CD9FF10E-B2AD-446C-8580-B050643473CF</string>
<string>D3B3174B-C30D-499A-95E1-62B1C541AD72</string>
<string>E63988FF-4701-4B7B-8877-43621D8AB749</string>
<string>1FA43C8F-D361-43F2-9A04-ABC36ADF7D08</string>
<string>D4C7ED85-CF4C-4C73-B7D5-A2736056DAD9</string>
<string>B6B1CA54-1685-4E75-9DB7-294B0CAA0BA8</string>
<string>3F50B291-69C1-4B58-B8AD-847776AFE7E2</string>
Expand Down

0 comments on commit 2261f36

Please sign in to comment.