I want to produce<br><div style="margin-left: 40px;">[origin [pt x]];<br></div>using a snippet called msg (short for message) that looks like this<br><div style="margin-left: 40px;">[${1:Receiver} ${2:message}]<br></div><br>
When I write msg and hit tab I am presented with<br><div style="margin-left: 40px;">[Receiver message]<br></div>where Receiver is highlighted. I write origin and hit tab. Now I get<br><div style="margin-left: 40px;">[origin message]
<br></div>and message is highlighted.<br><br>I write msg again and hit tab.<br><br>To my surprise I get<br><div style="margin-left: 40px;">[origin msg]<br></div>with tha caret after the last bracket. <br><br>So it seems that TM is giving priority to the outer snippet??? But I think that two other alternatives might be better
<br><br>Alternative 1: Forget all tab stops for the first snippet when an inner snippet is activated.<br><br>Another alternative is<br><br>Alternative 2: When hitting tab give priority to the inner snippet first and when it is finished then give focus to the outer snippet and let it do its thing.
<br><br>If I am wrong in my thinking tell me why. If I am right maybe it is some programming difficulty with nested snippets that prevents the desired behavior.<br><br>Thanks Bob<br>