Documentation lookup icon should be sensitive to the context (selected text)

If I have the cursor in the word rect() and click the eye (documentation lookup) icon, I’d love to see documentation for rect() come up, rather than have to navigate to it.

Ah… I was thinking that when you tap on the word and stuff like copy, paste, cut, ect. comes up, define would be replaced with looking it up in the documentation, not the apple dictionary.