[TxMt] (no subject)

Cliff Joyce cliffjoyce at pureblend.com
Mon Apr 2 04:21:54 UTC 2007

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

Thanks for the quick reply, Allan.

I tried it, but I must not be putting the disableOutputAutoIndent key  
in the correct place (I tried several).  Below is the contents of my  
snippet's plist file.  Where would I place the  
disableOutputAutoIndent key?

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http:// 
<plist version="1.0">
	<string>EOQ (eoq)</string>

More information about the textmate mailing list