Page MenuHomec4science

trailing_whitespace.tmMacro
No OneTemporary

File Metadata

Created
Wed, Dec 4, 10:06

trailing_whitespace.tmMacro

<?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>
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>perl -pe 's/[\t ]+$//g'</string>
<key>input</key>
<string>document</string>
<key>output</key>
<string>replaceDocument</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>Remove Trailing Space and Save</string>
<key>uuid</key>
<string>F61A9B5A-A31E-45C0-8A08-968A50664CC3</string>
</dict>
</plist>

Event Timeline