This patch provides nested looting. If you apply or #loot a container
an additional option, "a - Apply something from the ", is given, which
lets you apply any lootable objects (which includes unidentified bags
of tricks) from inside the container. If there is only one lootable
object, the option changes to "a - Apply the inside" saving you
another keystroke.
Presently it works with menu looting.