The search bar above the file window is pretty powerful. But sometimes the fact that it operates on the current context (what's in the file window) can be a drawback. If you want to search the entire DB then you have to change the context to @All in Categories View, or the Database node in Media and Folders View. I.e. it takes time to switch and you lose your place.
This script provides all the functionality of the search bar, but allows you to change the context for the search without changing the current context, i.e. without losing your place. The search results are listed in a new seach results tab / view.
Note that this script with lock IMatch while it's underway and can't be cancelled. I don't think there's a way around that. Some searches can take a while, e.g. if you specify to search in all fields across the entire DB. You have been warned.
There is some blank space in the script dialog. There are some additional options that I may include later depending on interest, like specifying which fields to search in via a filter, and limiting the number of results.
Thank you to Mario for providing SetScope, GetScope and ClearScope in 5.4.10, which enabled this script to be written with these options.
[attachment deleted by admin]