Although I’ve never written code for GIMP. I suppose this would be easy to implement with a plug-in, all it needs to do is put commands Show/Hide Selection, Show/Hide Guides, Show/Hide Rulers, and toggling rendering paths inside a subroutine so that they can run in one go.