> It may be better just to have as default selection the match instead of
 > limiting the available options. For example,
 >
 >     Def|IceCream would open a menu with
 >
 > ...
 > DefaultCake
 > DefaultIceCream  <--- Selected by default
 > DefaultPie
 > DestroyCake
 > ...
Of course, that is *exactly* what JBuilder does, gives you the choice of 
all possible options, but pre-selects the one that it thinks you want, 
based on your cursor position.

> However, what should happen if there is a DefaultVeryColdIceCream that would
> also match Def*IceCream?

Well you could say that here there would be a clear precedence, as IDEA 
would have to insert some text after the cursor as well as before for 
DefaultVeryColdIceCream but only before for DefaultIceCream, therefore 
DefaultIceCream is a closer match.

I'd suggest the wildcarded options should be sub-sorted alphabetically 
once there is no precedence; e.g. Def*Cream

N.

_______________________________________________
Eap-features mailing list
[EMAIL PROTECTED]
http://lists.jetbrains.com/mailman/listinfo/eap-features

Reply via email to