Magit allows for window manipulation. Logic moved to emacs-state.