Vanilla 1.1.1 is a product of Lussumo. More Information: Documentation, Community Support.
When you hit ESC to cancel/leave the snippet mode, I think it work be more useful if the cursor moved to the end point, rather than just staying where it is.
Also, it would be useful if the keywords used for activating a snippet were case insensitive.
Ok, I’ll think about it…
Case insensitivity should be language specific if it is implemented at all.
I like things the way they are. :\
Yeah, the case insensitivity is only a minor thing, but think the ESC function is important (even if it was just an optional setting). The way I see it, you would only hit ESC when you no longer want to edit any of the areas in the snippet, much like when you have tabbed through them all. So the most logical place for the cursor to go, whenever the snippet is finished with, is the end point, as that’s where you are most likely to continue typing from.
Just my opinion, but please make it an option at least.
Does ESC actually have any specific use while in snippets “mode”? Perhaps I wasn’t actually in that mode, because I didn’t notice anything. However, snippets mode (if I was in it) doesn’t stop you from moving from outside the current set, and using directional keys or the HOME/END keys.
Well, ESC cancels snippets mode. In snippets mode, pressing TAB will select the next item of interest. While TAB in “normal” mode indents..
Ah, I see the importance then. Thanks. :)
Somehow I got it in my head that nesting snippets was already possible, but clearly it isn’t. Consider it requested as hell.
Mmm… slightly different, but.. i like the idea of typing something like “html.head” and “body.form” and have it expand it all automatically. The subsequent snippets could be expanded at the $0 position of the previous snippet. We could perhaps extend that idea to including a “skip” character so that we can do this: “html.head/.body.form” with the / character meaning to break out of the current nesting one level (ie, put the cursor at the end of the current snippet, instead of at the tab $0 position) while two // goes up two levels.
Frederick and corelon: I’ve added it under Snippets
Something very similar will be possible with scripting.
At first thought it sounds almost bloated, but maybe it would be useful and could possibly be executed in a rather usable fashion. I’d like to explore it further when scripting support arrives.
Ok, I deciced to implement the original idea. The ESC key will move caret to end point. Feature has been added to our feature list.
1 to 14 of 14