angelozerr / eclipse-wtp-webresources

Provides completion, hyperlink, hover inside WTP HTML editor for Web Resources (CSS, JS, Images)
Eclipse Public License 1.0
13 stars 9 forks source link

Too much proposals with css autocompletion #28

Closed jabby closed 9 years ago

jabby commented 9 years ago

When I use autocomplete an class attribute I see too much proposals. For example, when I use twitter bootstrap, and I want to use "control-label" class, I didn't see in autocomplete because there are 15 proposals for "container" and 11 for "container-fluid".

In fact if you count all different names, there are only 3 proposals for the string "cont".

These all proposals are in bootstrap.css file. See the next picture to illustrate this issue. 2014-11-21_223730

angelozerr commented 9 years ago

I'm happy that you create an issue for that, because I don't know how to manage that. Problem is about the second popup.

I think the better thing is to shows just 3 items completion for your case, but what about the second popup? Display the merge of the same name, display the first founded?

angelozerr commented 9 years ago

@jabby I have fixed the problem. In teh second popup display only the CSS text the first class name I found. I'm afraid to merge CSS text for the same class name and have some troubles because it could be very long.