window-numbering-mode assigns a number to each window in a Emacs frame, so you can reach any window with just one command (M-1 … M-0)
window-numbering-mode
This project is now available on github.