[TxMt] Looking for the equivalents to some Emacs commands

Allan Odgaard throw-away-1 at macromates.com
Sun Aug 13 23:13:55 UTC 2006


On 8/8/2006, at 14:14, Joe Thornber wrote:

> On 08/08/06, Joe Thornber <joe.thornber at gmail.com> wrote:
>> If you set 'Insert as Snippet' it moves the cursor.
>
> oh, plus you need to replace the line:
>  print " "
> with
>  print " ${1}"

Yes, inserting as a snippet and using the ability to put tab stops in  
the snippet is the recommended way to control the carets position.

I should add that when inserting as a snippet one should escape  
snippet control characters, I have attached an updated command which  
does that:

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Collapse Whitespace.tmCommand
Type: application/octet-stream
Size: 950 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060814/db8a967d/attachment.tmCommand>


More information about the textmate mailing list