[TxMt] Move the caret to start of line within a TM snippet?

Allan Odgaard throw-away-1 at macromates.com
Mon Apr 2 03:52:11 UTC 2007


On 2. Apr 2007, at 05:28, Cliff Joyce wrote:

> Hi.  I have the following TM snippet (scope = source.php, tab  
> trigger = eoq):
>
> 	<<<EOQ
> 		${0}
> 	EOQ;
>
> My snippet works fine, except: the trailing EOQ needs to always be  
> placed at the beginning of a line.  Currently, the trailing EOQ  
> winds up at the same indent position as the beginning "<<EOQ".
>
> Does someone know of a way to move the caret to the beginning of a  
> line within a snippet? [...]

You can have it inserted without the snippet being indented to the  
current level, the following trick works for tmSnippet files as well:  
http://lists.macromates.com/pipermail/textmate/2007-March/018523.html





More information about the textmate mailing list