On 25.03.2009, at 18:48, jonatan andersson wrote:
Hi,
I would like to know how to remove trailing whitespace (spaces and tabs) when saving a document.
I currently have the Text bundle item "Remove Trailing Spaces in Document / Selection" associated with a keyboard shortcut, but that is not an optimal solution
Create a tmCommand 'saveMe' in the Bundle Editor as discribed here: http://lists.macromates.com/textmate/2009-January/027936.html
Then record a macro with: - Text > Converting/Stripping > "Remove Trailing Spaces in Document / Selection" - saveMe
and save/name that macro
--Hans