No, this currently cannot be done. There’s a feature request for such functionality, but it doesn’t seem to be very popular: