Finally my Strip Whitespace On Save bundle (https://github.com/bomberstudios/Strip-Whitespace-On-Save.tmbundle) is working!
Thanks!
a!
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>
On Mon, Oct 1, 2012 at 3:14 PM, Simon Gregory mr.simon.gregory@gmail.comwrote:
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.
Thanks for spotting the bug (I didn't realize I had a delta bundle that made it work properly on my system).
Fixed and committed : )
a!
Awesome bundle!
Just a minor note, you state in the docs to clone the bundle into ~/Library/Application Support/TextMate/Managed/Bundles, but this is Managed folder, so it is IMHO bad idea. The place for unmanaged bundles is AFAIK ~/Library/Application Support/Avian/Bundles
Cheers,
Updated!
I've also merged infininight's fork of the bundle, that uses a macro instead of a command for better performance.
On Thu, Oct 4, 2012 at 8:25 PM, Adam Strzelecki ono@java.pl wrote:
Awesome bundle!
Just a minor note, you state in the docs to clone the bundle into ~/Library/Application Support/TextMate/Managed/Bundles, but this is Managed folder, so it is IMHO bad idea. The place for unmanaged bundles is AFAIK ~/Library/Application Support/Avian/Bundles
Cheers,
Adam Strzelecki | nanoant.com | twitter.com/nanoant
textmate mailing list textmate@lists.macromates.com http://lists.macromates.com/listinfo/textmate