With the way I work, I often just want one window (what's showing my code). Now several things (like opening help) open another window. That's fine, but when I'm finished I just want all windows closed and to return to the original.
Often Q will get me out of something, But not every time. I want a consistent shortcut to 'close all but the main window'
delete-other-windows is close to what I'm looking for, but I've obnoxiously been focusing the wrong window when utilizing it.
Is there a way to tag a window (say on startup of a frame, tag the first window), and then close all other windows besides that one? I don't want to think about where I'm currently focused.