Fix several issues with SearchPanel.
Allow running actions as part of file templates.