emmetio / Emmet.tmplugin

Emmet plugin for TextMate
http://emmet.io
97 stars 11 forks source link

What about TextMate 2? #3

Closed albeva closed 11 years ago

sergeche commented 11 years ago

https://github.com/emmetio/emmet-objc/issues/3

almadsen commented 11 years ago

I can see at emmetio/emmet-objc#3 that the latest communication was about 2 months ago, so I'm just wondering how it's coming along, any progress?

sergeche commented 11 years ago

No progress yet. I’ll post something in the original thread when I have something to show.

igor10k commented 11 years ago

Can't wait till it's finished. Always have to switch to ST2 when working with Stylus files (

lmartins commented 11 years ago

:+1: Also looking further into Textmate2 support.

puleddu commented 11 years ago

+1 :)

sergeche commented 11 years ago

Made initial implementation of plugin for TM2: http://download.emmet.io/Emmet.tmplugin.zip

Should work on both TM1 and TM2. Let me know if there are any issues.

puleddu commented 11 years ago

Thank you @sergeche I'll test it and report if there are any issues.

igor10k commented 11 years ago

Yay, finally. The expanding works great. Tested in HTML and Stylus. Thanks! "Update Image Size" does not work though.

sergeche commented 11 years ago

All file operations won’t work for now due to limited TM2 api.

igor10k commented 11 years ago

div.| press tab and get <div class="|"></div> type some characters <div class="txt|"></div> press tab and get <div class="<txt></txt>|"></div> instead of <div class="txt">|</div>

igor10k commented 11 years ago

Is there an issue opened about the limited TM2 api in their github bug tracker?

sergeche commented 11 years ago

Looks like you’ve enabled Tab expander in preferences. With this option enabled, Emmet hijacks Tab key and don’t pass it to host editor. So tabstops won’t work.

igor10k commented 11 years ago

So we should ask TM2 developers to implement some API to make "tab" work the way it should? Create an issue, let's ask them for that one.

sergeche commented 11 years ago

I’m already writing an e-mail to devs

sergeche commented 11 years ago

I’ve pushed update for current plugin (e.g. this repo), now it should work in TextMate 2 (with file actions like Update Image Size too).

Still, proper Tab key API is required in TM2 in order to Emmet work properly with tab key. You should post this suggestion to TM2 repo.

igor10k commented 11 years ago

Great! Did devs replied to your email? Did you create an issue about the API? I can ask Allan on the IRC for the needed stuff, I'm just not sure what specifically is needed. Btw if you want you can join #textmate IRC channel at http://freenode.net and talk do devs directly. No need to install any IRC client, there's an online interface at http://webchat.freenode.net/ It's very easy to catch Allan there

puleddu commented 11 years ago

Thank you Sergey for the good work.

sergeche commented 11 years ago

Yes, they told me to discuss this feature at http://lists.macromates.com/listinfo/textmate-dev Maybe I’ll write my suggestions there.

igor10k commented 11 years ago

Btw, is there a way to change stuff from preferences.json in TM2?

sergeche commented 11 years ago

https://github.com/emmetio/Emmet.tmplugin#extensions-support http://docs.emmet.io/customization/

igor10k commented 11 years ago

Thanks! Sorry, rushed a bit, should've read the github page first. I was looking for some kind of "User Settings" like Sublime Text has. Creating a folder with files is much less intuitive. Anyway, got this working. Now I'll just wait for the correct tab implementation. Thanks for your hard work!