Trigger attach

I'm taking over #1957. I just did a rebase and a small refactor of `displayedViews`. Just gave this a read through. Even read the massive on-attach spec. I think it's ready to go in. 
Hmm, can we just make it 80 or something? You can setup a wrap line in most editors.