On Tue, 4 Jun 2013 07:36:57 -0800 Chris Lott <ch...@chrislott.org> wrote:
> On Mon, Jun 3, 2013 at 1:07 PM, Steve Litt > <sl...@troubleshooters.com> wrote: > > I just won't let any two <h?> > > texts be the same, and actually, why would that happen in normal > > authoring? > > Really? Happens to me all the time: > > <h1>Monkey > <h2> Habitat > <h2> Dances > > <h1>Pig > <h2>Habitat > <h2>Dances > > Headers outline a structure that can nest...hacking the headers is a > hack, but it grows to be an ugly one. Yep. If I regularly did what you do above, I'd for sure be furious at snipMate making the id out of the header text. The one difference between you and me is I almost never us an id with any <h?> except <h1>. With <h2> for instance, it doesn't appear in my page's table of contents, and there's no reason I want it modified in any way with javascript. So in my case it truly is rare to get a situation where two ids would be the same, and it would stick out like a sore thumb, and if that happens once a week, it's not that inconvenient to just override snipMate once a week. In your case, where you regularly have hierarchies with identically texted headings at the same levels, snipMate's default handling of <h1> would indeed be a royal PITA. Thanks, SteveT Steve Litt * http://www.troubleshooters.com/ Troubleshooting Training * Human Performance -- -- You received this message from the "vim_use" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_use" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.