-
Notifications
You must be signed in to change notification settings - Fork 10
/
Strip Whitespace Then Save Document.tmMacro
51 lines (51 loc) · 1.37 KB
/
Strip Whitespace Then Save Document.tmMacro
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
<?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>bundleUUID</key>
<string>4D798994-A6A1-4F7E-B06B-439743EC92D5</string>
<key>commands</key>
<array>
<dict>
<key>argument</key>
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>perl -pe 's/[\t ]+$//g'</string>
<key>fallbackInput</key>
<string>document</string>
<key>input</key>
<string>selection</string>
<key>name</key>
<string>Remove Trailing Spaces in Document / Selection</string>
<key>output</key>
<string>replaceSelectedText</string>
<key>uuid</key>
<string>0F8C1F78-6E4C-11D9-91AF-000D93589AF6</string>
</dict>
<key>command</key>
<string>executeCommandWithOptions:</string>
</dict>
<dict>
<key>argument</key>
<dict>
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>input</key>
<string>none</string>
<key>output</key>
<string>discard</string>
</dict>
<key>command</key>
<string>executeCommandWithOptions:</string>
</dict>
</array>
<key>keyEquivalent</key>
<string>@s</string>
<key>name</key>
<string>Strip Whitespace Then Save Document</string>
<key>uuid</key>
<string>E0A9D091-F0B5-4ED1-AECF-6A47E409A270</string>
</dict>
</plist>