Hi,
TC just uploaded a code completion goodie to VASTGoodies.com - and it works really nicely.
I am surprised by how fast it comes up with suggestions and how fast it updates when I continue typing
Here's what I've found after playing with it for a hand full of minutes:
If I type and want to accept the top-most suggestion, pressing Enter does not always accept it. If I press BtnDown and press Enter, the second one is copied to the edit pane. If I press BtnDown and BtnUp, I can press enter to accept the first suggestion. But it seems I cannot accept the first one by default. Am I missing a key shortcut or is this a bug (I know it's alpha, so speaking of a bug is probably mean)?
So far it has problems with multiple keywords like perform:withArguments: once you've entered the first colon. It will make suggestions for the second keyword independently of the first one, meaning that when I type the letter w after the colon, I will get suggestions for all methods starting with w not perform:w*
Is there any sort order other than alphabetical for the suggestions? It seems to me that the list is just alphabetical. I am not sure if we can
Is there anything keeping us from changing the minimum of typed characters before it pops up to two or three? This thing is fast enough in my opinion. Maybe it could even start after the first character in case of operators like >=& etc...
I haven't looked into the code, so it is probably a dumb question with an obvious answer: is this thing portable?
I'd personally like its background color to be different from the color of the edit pane, but this is just a question of taste and has nothing to do with the functionality
An idea for enhancements: Do others think a hint as to what classes implement a method in the list of suggestions add to the usefulness of a code completer? I could imagine it helps, but am not sure. I am also not sure what a good way of presenting that info could be.
Another possible improvement on top of this: in Eclipse etc., there is some assistance with filling out the gaps for parameters, meaning once you accept a suggestion, the cursor will jump to the first parameter, and you can fill it in. Pressing Tab will jump to the next parameter etc. I guess it is way to early to ask for this, and it's probably on your own list anyways.
I want to repeat that I like this goodie very much.
It makes life much easier even in its early stage, so don't take my fedback as criticism. Thanks for sharing it this early!
Joachim