Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Text : Opt + Shift + W - remove Trailing whitespace

  • Loading branch information...
commit 4b439f125c29c99d9c8a2360d738090d1315f53b 1 parent 77a5934
@desandro authored
View
4 README.mdown
@@ -72,3 +72,7 @@ git clone https://github.com/desandro/textmate-bundles.git Bundles
+ Tweaks to formatting
+### Text
+
++ Commands
+ - **Opt + Shift + W** : Remove Trailing Spaces in Selection/Document
View
34 Text.tmbundle/Commands/Remove Trailing Spaces in Document : Selection.tmCommand
@@ -0,0 +1,34 @@
+<?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>changed</key>
+ <dict>
+ <key>command</key>
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+perl -pe 's/[\t ]+$//g'</string>
+ <key>inputFormat</key>
+ <string>text</string>
+ <key>keyEquivalent</key>
+ <string>~W</string>
+ <key>outputCaret</key>
+ <string>heuristic</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
+ <string>replaceInput</string>
+ <key>version</key>
+ <integer>2</integer>
+ </dict>
+ <key>deleted</key>
+ <array>
+ <string>output</string>
+ </array>
+ <key>isDelta</key>
+ <true/>
+ <key>uuid</key>
+ <string>0F8C1F78-6E4C-11D9-91AF-000D93589AF6</string>
+</dict>
+</plist>
View
10 Text.tmbundle/info.plist
@@ -0,0 +1,10 @@
+<?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>isDelta</key>
+ <true/>
+ <key>uuid</key>
+ <string>B7BC3FFD-6E4B-11D9-91AF-000D93589AF6</string>
+</dict>
+</plist>
Please sign in to comment.
Something went wrong with that request. Please try again.