Magic autocompletion for text, State and Input