Created
July 20, 2016 18:50
-
-
Save loadedsith/7ffa74716859f2bff7367ec15fc4da12 to your computer and use it in GitHub Desktop.
Slugify Macro for TextMate 2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>command</key> | |
<string>lowercaseWord:</string> | |
</dict> | |
<dict> | |
<key>argument</key> | |
<dict> | |
<key>action</key> | |
<string>replaceAll</string> | |
<key>findString</key> | |
<string>-</string> | |
<key>ignoreCase</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>argument</key> | |
<dict> | |
<key>action</key> | |
<string>replaceAll</string> | |
<key>findString</key> | |
<string>\s{2,}</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> | |
</array> | |
<key>name</key> | |
<string>Slugify</string> | |
<key>uuid</key> | |
<string>7415247E-814A-4031-8DBE-73FB4659BC5D</string> | |
</dict> | |
</plist> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment