Sublime Forum

Strange issue with tabbing/enter and Zen Coding package

#1

I’m on build 2139, using the Zen Coding package, installed via Package Control.

I don’t remember Zen Coding doing this before, in previous versions:

When I use Zen Coding shorthand to write html (such as “div#lolFun”), and then hit tab, it is expanded properly. The cursor is placed between the DIV tags, as expected. However, from here, the enter key does not do anything; I’m unable to do anything from this position except type in text between the tags, or hit tab to exit the cursor from the DIV. This is fine for empty DIVs, but when I want to immediately place the DIV’s interior content on a new line (i.e. most of the time), this is irritating. I’d like for the enter key to work as expected when the cursor is placed between the DIV tags after expanding a Zen bit.

Anyone know why it’s doing this?

edit - It also appears that tab autocomplete isn’t working at all on anything other than direct DIV elements (i.e. "div#lolFun>ul>li8" does not work at all).

0 Likes

#2

There were some other threads about this. Its a bug that can be worked around by appending a > to the end of your lines before expanding. Hopefully its fixed soon.

0 Likes

#3

Ahh, I did see those threads, but assumed it was an unrelated issue. Thanks for the heads up.

0 Likes