On 02.04.2009, at 07:57, Scott Haneda wrote:
I can not open the .tmMacro file in TM, so I could use the shell, but that seems strange, and it is a plist, and not entirely sure what to edit.
You can edit such file. Simply open the Bundle Editor, hold the key ⌥ while drag&drop the macro to the TextMate dock item. Or open the macro in the Finder and open that file with tm* with TM while holding the ⌥ key.
The Macro has two commands executeCommandWithOptions { beforeRunningCommand = nop; command = "perl -pe 's/[\t ]+$//g'"; input = document; output = replaceSelectedText; }
What happens if you replace "document" by "selection" ?
After editing such a tm* file you have to Flush Cache & Reload Bundles (Bundles > Bundle Editor > press ⌥ > Flush...) or simply restart TM.
--Hans