Expand with context

The current Expand feature doesn't consider the text preceding the highlighted selection that is to be expanded. This cause out of context suggestions, which are typically bad. As a consequence, the current Expand feature is really only useful when no text is written yet. That would be nice to have an expand feature that also considers the text preceding the highlighted selection.