[TxMt] Re: Templates in TM2

Walter Lee Davis waltd at wdstudio.com
Wed May 27 14:52:04 UTC 2015


On May 27, 2015, at 10:32 AM, Graham P Heath <graham.p.heath at gmail.com> wrote:

> With a snippet, you create the snippet in the Bundle Editor and set the Tab Trigger to "!", then when you type "!" followed by a tab, you’d get the expanded version.
> 
> Why "!"? No good reason really, its just that I use the Emmet plugin and the shortcut for a base html page is "!" and then the expand key combo; Control + A. 
> 
> You can get all sorts of different html templates, ! = html5, just search for "html" on the cheat sheet below for html4, strict or otherwise.
> 
> https://github.com/emmetio/Emmet.tmplugin
> http://docs.emmet.io/cheat-sheet/

Oh, thanks! That is just excellent. I need to read this cheat sheet -- I use Emmet as well.

Walter

> 
> 
> Graham P Heath
> 
> 
> On May 27, 2015 at 9:29:13 AM, Walter Lee Davis (waltd at wdstudio.com) wrote:
> 
>> 
>> On May 27, 2015, at 8:47 AM, Igor <me at igorkozlov.me> wrote: 
>> 
>> >> I am sure this may have been discussed earlier, but I would like to know what the current state of Templates (File / New from Template) is in TM2. I started experimenting with 2 over the weekend, after about a decade of using 1.x exclusively. That was my immediate "miss", as I typed out the complete structure of an HTML page (like an animal). Am I just looking in the wrong place for these? 
>> > 
>> > Why not just create a snippet with the structure of an HTML page? 
>> 
>> How do you invoke such a snippet? Would this be a regular type + tab kind of thing? In TM 1.x, these templates were part of the bundle, but were invoked through the File New dialog. I am asking if this functionality and menu integration is gone, or I have my copy misconfigured and I cannot see it. 
>> 
>> Walter 
>> 
>> 
>> 
>> _______________________________________________ 
>> textmate mailing list 
>> textmate at lists.macromates.com 
>> http://lists.macromates.com/listinfo/textmate 
> 
> _______________________________________________
> textmate mailing list
> textmate at lists.macromates.com
> http://lists.macromates.com/listinfo/textmate



More information about the textmate mailing list