@themousepotato One way to do this is implemented in mfqp. I use the search string to pre-fill the text field. Then, I trigger the functions that generate the results. This is the PR if you want to take a look. These two projects work together very well.
Add hyperlink of the search results to the corresponding page in WIMP. Related to https://github.com/themousepotato/wimp/issues/8