[TxMt] Hard tabs, soft tabs, oh my

Allan Odgaard throw-away-1 at macromates.com
Mon Jul 24 01:18:14 UTC 2006


On 24/7/2006, at 2:39, Skye Poier wrote:

> Is there a way to provide an argument to changeTabsToSpaces: in the  
> macro recorder for stop size? [...]

As Haris suggests, use Filter Through Command… (or create a command  
[1].)

The shell command you want is: expand -t8 with input/output set to  
document/replace doucment.

Here’s an example, I gave it a key equivalent of F4:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Expand Tabs (8 Spaces).tmCommand
Type: application/octet-stream
Size: 655 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060724/55bca68a/attachment.tmCommand>
-------------- next part --------------

[1] http://macromates.com/textmate/manual/commands


More information about the textmate mailing list