Tab-completion for prompts