Close documents in sidebar with middle mouse button

Handy patch that allows to close many documents quickly.