[TxMt] Delete extra space on save?

Michael Jackson mjijackson at gmail.com
Tue Sep 11 04:13:55 UTC 2007


On Sep 10, 2007, at 2:04 PM, Michael Sheets wrote:

> On Sep 10, 2007, at 11:51 AM, Michael Jackson wrote:
>
>> I'm looking for a way to delete all extra space from a file on  
>> save. Extra space would include extra space on the end of lines.  
>> For empty lines, this would delete all space contained within  
>> them. Any ideas?
>
> Record a macro that does that as a find & replace, then saves the  
> file. Set it to ⌘S.

Thanks for the idea. I can get the first part to work, but I can't  
seem to get the macro to save the file for me. I've tried using the  
menu command as well as the keyboard shortcut while recording the  
macro and neither seem to work. Any idea why?

Thanks,

Michael

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2452 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070910/5e8ac40b/attachment.p7s>


More information about the textmate mailing list