Add tab completion with fixes for select mode