Permalink
Browse files

The return of Add Parenthesies

This time it adds parens from caret to beginning of text in line

git-svn-id: http://svn.textmate.org/trunk/Bundles/F-Script.tmbundle@2162 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
1 parent 6a270cd commit 0f86217083f8a66930a4e3fd303530282291a73b @kballard kballard committed Nov 17, 2005
Showing with 53 additions and 0 deletions.
  1. +52 −0 Macros/Add Parenthesies.plist
  2. +1 −0 info.plist
@@ -0,0 +1,52 @@
+<?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>command</key>
+ <string>moveToBeginningOfLineAndModifySelection:</string>
+ </dict>
+ <dict>
+ <key>argument</key>
+ <dict>
+ <key>action</key>
+ <string>replace</string>
+ <key>findInProjectIgnoreCase</key>
+ <true/>
+ <key>findString</key>
+ <string>(\s*)(.*)</string>
+ <key>ignoreCase</key>
+ <false/>
+ <key>regularExpression</key>
+ <true/>
+ <key>replaceAllScope</key>
+ <string>selection</string>
+ <key>replaceString</key>
+ <string>$1($2)</string>
+ <key>wrapAround</key>
+ <false/>
+ </dict>
+ <key>command</key>
+ <string>findWithOptions:</string>
+ </dict>
+ <dict>
+ <key>command</key>
+ <string>moveRight:</string>
+ </dict>
+ </array>
+ <key>keyEquivalent</key>
+ <string></string>
+ <key>name</key>
+ <string>Add Parenthesies</string>
+ <key>scope</key>
+ <string>source.fscript</string>
+ <key>scopeType</key>
+ <string>local</string>
+ <key>useGlobalClipboard</key>
+ <false/>
+ <key>uuid</key>
+ <string>093A2267-786C-4D66-B7F4-5C849481F69A</string>
+</dict>
+</plist>
View
@@ -7,6 +7,7 @@
<key>ordering</key>
<array>
<string>6DF01745-8E18-4D2D-AA80-27F001B47A16</string>
+ <string>093A2267-786C-4D66-B7F4-5C849481F69A</string>
<string>104B9BAD-1E5B-4E7E-AD9B-3908B16B214D</string>
<string>1D5529F3-DA53-490D-AC62-4860FCBA92C4</string>
<string>C00565D4-1627-4134-ABA2-537B7A5AB1B8</string>

0 comments on commit 0f86217

Please sign in to comment.