[TxMt] Delete extra space on save?

Kevin Ballard kevin at sb.org
Tue Sep 11 09:14:24 UTC 2007


Try editing the macro plist by hand to add save: as an action.

On Sep 11, 2007, at 12:13 AM, Michael Jackson wrote:

> 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?

-- 
Kevin Ballard
http://kevin.sb.org
kevin at sb.org
http://www.tildesoft.com


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macromates.com/textmate/attachments/20070911/1ffe1c09/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2432 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20070911/1ffe1c09/attachment.p7s>


More information about the textmate mailing list