eclipse-zencoding icon indicating copy to clipboard operation
eclipse-zencoding copied to clipboard

Tab autocomplete problem in Aptana 3

Open castus opened this issue 14 years ago • 6 comments

Hi,

In Aptana 3 Tab key for expanding abbreviation has some strange behavior. For example:

pos:r
is expanded to:
position: relative;

but

pos:a
is expanded to:
pos:p[name="string"]
property: value

(should be position: absolute).

When I expand abbreviation with some other shortcut (for ex. Ctrl + E) expanded abbr is ok. This issue is only for Tab. I think this is some issue in Aptana 3, because in Aptana 2 everything works fine.

castus avatar May 11 '11 10:05 castus

Aptana 3’s Tab key handler takes precedence over ZC one. So, in your case you’re expanding Aptana snippet (read notes in README: https://github.com/sergeche/eclipse-zencoding).

sergeche avatar May 11 '11 10:05 sergeche

Thanks! I removed all snippets but still have problem with "h" Aptana 3 abbreviation. Do you know what I must remove to get "h" works with, for ex., "ov:h". Now "h" abbreviation is some kind of comment for new files.

castus avatar May 11 '11 11:05 castus

I don’t use Aptana. It may be some sort of bundle action or dynamic contribution through bundles. You should ask Aptana devs

sergeche avatar May 11 '11 11:05 sergeche

@sergeche the plugin is crazy good, keep it up

@castus I am using Aptana 3 and found that when I checked the checkbox in:

Window>Preferences>Zen Coding>Upgrade web editors

It seemed to fix any issues I was having with the plugin. One thing to note though, I tried using the filters and Aptana blocks ZC from doing it's magic, but if you add an extra| ('pipe') at the end and the plugin works.

samuelmburu avatar May 13 '11 01:05 samuelmburu

The “Upgrade web editors” option is used for Eclipse WTP editors: it better handles line breaks between tags (i.e. when you hit Enter key) and between curly braces in CSS

sergeche avatar May 13 '11 15:05 sergeche

Zen coding works fine only when I deleted all snippets included in Aptana 3. I have only one problem with "h" abbreviation.

Wysłane z Androida za pomocą K-9 Mail. Prosze wybaczyć lakoniczność.

sergeche [email protected] napisał:

The “Upgrade web editors” option is used for Eclipse WTP editors: it better handles line breaks between tags (i.e. when you hit Enter key) and between curly braces in CSS -- Reply to this email directly or view it on GitHub: https://github.com/sergeche/eclipse-zencoding/issues/18#comment_1154366

castus avatar May 13 '11 16:05 castus