[TxMt] Re: Thanks for callback.document.will-save :D

Simon Gregory mr.simon.gregory at gmail.com
Mon Oct 1 13:14:10 UTC 2012


> Finally my Strip Whitespace On Save bundle (https://github.com/bomberstudios/Strip-Whitespace-On-Save.tmbundle) is working!

I like it. 

You may want to update the command so that caret placement uses character/line interpolation - otherwise it's quite disorientating ending up at EOF on each save.

Cheers,
Simon

--- i/Commands/Strip Whitespace On Save.tmCommand 
+++ w/Commands/Strip Whitespace On Save.tmCommand 
@@ -18,7 +18,7 @@ perl -pe 's/[\t ]+$//g'
<key>name</key>
<string>Strip Whitespace On Save</string>
<key>outputCaret</key>
- <string>heuristic</string>
+ <string>interpolateByLine</string>
<key>outputFormat</key>
<string>text</string>
<key>outputLocation</key>





More information about the textmate mailing list