We've already had this layout trigger for a while, but I've never used it in Find Mode because I've never understood what it could be used for. My expectation was that the trigger would be performed before the find, and that would help adding criteria to the user-defined search.
Currently, the sequence when a find is performed is really strange - and IMHO absolutely useless:
- search criteria are validated and throw an error (prompt) if invalid, so the triggered script has no chance to fix
- the triggered script is performed
- the find is performed WITH the criteria as they were before the triggered script is performed
Here is a sample file that illustrates the issue.