Design notes for Completion feature

Owen Taylor 2007-11-17

(This actually covers both completion and docstring popups since I see them as being very closely tied together.)

I’m pretty familiar completion in the Eclipse Java Development Tools (JDT) editor, and I think it works pretty well, so what I’m going to do here is first describe the Eclipse behavior in detail, then look at what parts of that carry over to Reinteract and what parts don’t or could be improved.

Eclipse completion behavior

Completion in Reinteract

I think most the behavior above can be carried over, though it doesn’t all need to be implemented at once! The special parameter editing mode is really a different feature, and may not translate well with keyword and optional arguments. One I don’t like about the Eclipse system is the F2 to focus a doc tooltip thing, but I can’t think of a better way to do it.