switch between editors by direction