treehouse : what would you like to learn today?
Web Design Web Development iOS Development

TextMate Tab Triggers

  • So I am struggling here. Is there a way to use a tab trigger inside of a tab trigger? Let me explain:

    Keystroke: ^ + shift + <

    Result: < p >< /p >

    The opening p tag is highlighted and I tab to the center.

    Now I want to add a link, so I type 'href' than try and tab. Instead of a tab trigger being activated, href is left as text and the cursor is outside the closing p tag. Now I have to use the arrow key to go back to 'href' and tab again to activate it's tab trigger. Is there any way around this?

  • Zen Coding?

  • This is not a Zend Coding issue, basically, if I am inside of one tab trigger, can I execute another.

  • I don't see a way...of course you could always set up a new snippet to insert a p containing a link.