So, I know that this is already on the todo list, but I'm curious what the status of nested snippets is. I'm talking about initiating another snippet while still in the placeholder of another snippet. Then when you tab out it would return to the previous snippet(s). I'm sure a few thorny issues might come up in implementation, but the general idea is just a stack of active snippets instead of a single one.
The reason I ask is because often when I create snippets I am forced to choose between something like:
<p>$0</p>
and
<p>$1</p>$0
The first one is sometimes preferable because I can then put another snippet right in. However in general I would prefer to use the second form. With nested snippets we get the best of both worlds.
TextMate already had an easy time replacing BBEdit for me, but this feature alone would probably double my HTML creation speed.
On 24/12/2005, at 20:07, Gabe da Silveira wrote:
So, I know that this is already on the todo list, but I'm curious what the status of nested snippets is [...]
Well, when I rewrote the snippet stuff a few months ago, I did design it with nested snippets in mind, and it probably shouldn't take long to add the proper stack handling, but that can be said about a lot of thingsā¦