I apologize for the simple question but is there a way to turn on tag completion? For instance, when I close a paragraph tag i would like textmate to automatically create a closing tag for me. Thanks so much.
Rob,
Watch the following QuickTime instructional movie and prepare to be blown away:
http://macromates.com/screencast/insert_html_tags.mov
(8.4MB QT Movie)
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools http://scan.dalo.us
On Dec 27, 2006, at 9:52 PM, Rob Soule wrote:
I apologize for the simple question but is there a way to turn on tag completion? For instance, when I close a paragraph tag i would like textmate to automatically create a closing tag for me. Thanks so much.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Thank you so much for the video link. The more I learn about this great program, the more I love it. Maybe I'm missing something very obvious but I'm still not 100% sure on how to accomplish this basic task. In the very late seconds of the video you can see him type out a ul and li tags and the closing tags are created automatically. This is exactly the result i'm looking for. Are these snippets he's created? Thanks so much.
On Dec 27, 2006, at 10:57 PM, Todd Ditchendorf wrote:
Rob,
Watch the following QuickTime instructional movie and prepare to be blown away:
http://macromates.com/screencast/insert_html_tags.mov
(8.4MB QT Movie)
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools http://scan.dalo.us
On Dec 27, 2006, at 9:52 PM, Rob Soule wrote:
I apologize for the simple question but is there a way to turn on tag completion? For instance, when I close a paragraph tag i would like textmate to automatically create a closing tag for me. Thanks so much.
_ For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
He's right; that video is just jaw-dropping for a web developer. Every day, TextMate blows me away a little more. I'm not easily impressed, but TM is like a program coded in pure awesome.
--Robert D.
On Dec 27, 2006, at 10:57 PM, Todd Ditchendorf wrote:
Rob,
Watch the following QuickTime instructional movie and prepare to be blown away:
http://macromates.com/screencast/insert_html_tags.mov
(8.4MB QT Movie)
Todd Ditchendorf
Scandalous Software - Cocoa Developer Tools http://scan.dalo.us
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
-------------------------------------------------------- robdumas@gmail.com http://obnoxio.us/
Hi.
Basically I'm making HTML-tags in two ways:
* type CTRL-< to generate open & close tags and then the tag you want. P.e. CTRL-<ul gives you <ul></ul> * open your tags with just <ul (gives you <ul>) and use CTRL-ALT-. to close it.
Be shure to use HTML as language.
Niko.
In many cases, you’re better off using the tab-triggered snippets that you’ll find in the Bundle editor. To see a list of them, go into Bundles->Bundle Editor->Edit Snippets and take a peek at what's available. For example, just typing p and hitting tab would give you a block:
<p class="name">
</p>
...where you can tab through to delete or change the class name. The last time you hit tab it will place your caret right in the middle of the tags. There are a lot of snippets defined and you can modify them and create your own for your most used tasks!
Brett
On Dec 28, 2006, at 1:31 AM, Niko Dittmann wrote:
Hi.
Basically I'm making HTML-tags in two ways:
- type CTRL-< to generate open & close tags and then the tag you
want. P.e. CTRL-<ul gives you <ul></ul>
- open your tags with just <ul (gives you <ul>) and use CTRL-ALT-.
to close it.
Be shure to use HTML as language.
Niko.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
Rob- I think you may have missed typed a bit. I think you meant to say "when I _open_ a paragraph tag I would like textmate to automatically create a closing tag for me." I think that's how dreamweaver works. Anyway, I don't think textmate works in that same way. As Niko said, using ctrl-< (also written: ctrl-shift-,) will create opening and closing tags and allow you to fill in whatever you need and then hit tab and you jump in between the tags, hit tab again and jump to the end of the tags.
You mentioned that at the end of the screencast he did just what you wanted to do. It looks like he was using tab completion on ul and li. Which is a question I have, I don't have those tab completions in the HTML bundle. Does everyone just create them for themselves or am I missing? I kind of expected these tab completions that aren't there: p, a, span, ul, and li. Any thoughts?
Matt
On Dec 27, 2006, at 10:52 PM, Rob Soule wrote:
I apologize for the simple question but is there a way to turn on tag completion? For instance, when I close a paragraph tag i would like textmate to automatically create a closing tag for me. Thanks so much.
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Dec 29, 2006, at 5:32 PM, Matt Zollinhofer wrote:
You mentioned that at the end of the screencast he did just what you wanted to do. It looks like he was using tab completion on ul and li. Which is a question I have, I don't have those tab completions in the HTML bundle. Does everyone just create them for themselves or am I missing? I kind of expected these tab completions that aren't there: p, a, span, ul, and li. Any thoughts?
well, p is the default at ctrl-<, so not really worth a snippet. a I think is worth a snippet, but no idea why it's not there. Of course there are a couple of automatic link creation commands, for instance by dragging most files into the html document (for relative links), there's "wrap selection as link", and "Lookup selection on google and link". I think there is a "span" snippet, or perhaps it is something I added? As for ul and li, there is the "links to unnumbered list" command. I haven't watched that screencast for a while, so I don't know if this is what it uses.
Matt
Haris
right, p is the default for ctrl-<. I guess I was speaking from a workflow point of view. if I'm writing html it's nicer (for me) to be able to type p, a, span, etc and just hit tab to keep going, rather than have to think, minimally I know, about what the other hotkey it is. Even if that is a bit of a weak argument, having multiple ways to get to the same command (tab, hotkey, select bundle item, actually going to the menu) like creating a p tag is far from a new idea.
anyway, nice to know I wasn't missing something with those tab completions, I'll just have to add them.
On Dec 29, 2006, at 12:08 PM, Charilaos Skiadas wrote:
On Dec 29, 2006, at 5:32 PM, Matt Zollinhofer wrote:
You mentioned that at the end of the screencast he did just what you wanted to do. It looks like he was using tab completion on ul and li. Which is a question I have, I don't have those tab completions in the HTML bundle. Does everyone just create them for themselves or am I missing? I kind of expected these tab completions that aren't there: p, a, span, ul, and li. Any thoughts?
well, p is the default at ctrl-<, so not really worth a snippet. a I think is worth a snippet, but no idea why it's not there. Of course there are a couple of automatic link creation commands, for instance by dragging most files into the html document (for relative links), there's "wrap selection as link", and "Lookup selection on google and link". I think there is a "span" snippet, or perhaps it is something I added? As for ul and li, there is the "links to unnumbered list" command. I haven't watched that screencast for a while, so I don't know if this is what it uses.
Matt
Haris
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate
On Dec 30, 2006, at 9:14 PM, Matt Zollinhofer wrote:
right, p is the default for ctrl-<. I guess I was speaking from a workflow point of view. if I'm writing html it's nicer (for me) to be able to type p, a, span, etc and just hit tab to keep going, rather than have to think, minimally I know, about what the other hotkey it is. Even if that is a bit of a weak argument, having multiple ways to get to the same command (tab, hotkey, select bundle item, actually going to the menu) like creating a p tag is far from a new idea.
It's not a weak argument at all, and I'm with you that these things should be there. There is no point in not having snippets for all tags, since we already have snippets for very many tags, IMO.
anyway, nice to know I wasn't missing something with those tab completions, I'll just have to add them.
Haris
I've got a fairly complete set that I'll submit tomorrow if I can get it cleaned up a little. It might be a good starting point.
Brett
On Dec 30, 2006, at 9:06 PM, Charilaos Skiadas wrote:
On Dec 30, 2006, at 9:14 PM, Matt Zollinhofer wrote:
right, p is the default for ctrl-<. I guess I was speaking from a workflow point of view. if I'm writing html it's nicer (for me) to be able to type p, a, span, etc and just hit tab to keep going, rather than have to think, minimally I know, about what the other hotkey it is. Even if that is a bit of a weak argument, having multiple ways to get to the same command (tab, hotkey, select bundle item, actually going to the menu) like creating a p tag is far from a new idea.
It's not a weak argument at all, and I'm with you that these things should be there. There is no point in not having snippets for all tags, since we already have snippets for very many tags, IMO.
anyway, nice to know I wasn't missing something with those tab completions, I'll just have to add them.
Haris
For new threads USE THIS: textmate@lists.macromates.com (threading gets destroyed and the universe will collapse if you don't) http://lists.macromates.com/mailman/listinfo/textmate