How can I hide unused node sockets? Is there a way to hide output node sockets that have nothing plugged into them?

This would be really useful, for instance when I am using the light path (or any other input node) and I am only using one output and the other 9 are just wasting space.
Yes, this can be done by pressing &#9096; CtrlH: