Search all scripts with MBS Plugin

There is a new feature in development for MBS Plugin and you can see it 16.0pr6 (see announcement here). We add the possibility to search in all scripts in the script workspace and find things.

For this we add a new search button (magnifier glass) to the toolbar on macOS on the right:

As well as on Windows with a regular button:

We even got a fancy tooltip to explain the button.

When you click the button, we take a snapshot of the current scripts in the window. Then we open a search window and pass the scripts. This may take a few seconds (or a minute for huge databases). Once the snapshot is loaded in the search window, you can start searching:

As you see we show you results as you type and highlight the found text. We show the script name (optionally with group name), the line number and what step this is.

When you make changes to the script, the snapshots ages. You may decide at any time to close the search window and open a new one.

On the Mac we can actually control the Script Workspace. You can click on the search result and we find the script (by name) and open it on the given line. There is a little chance that you have two scripts with the same name and this won't pick the right one.

You can have multiple search windows open. All the script data is held only in memory and you can only search the scripts where FileMaker allows you to see the content, so no worries for security. In case you close the Script Workspace, we close the related search windows. Use SyntaxColoring.ScriptSearchButton.SetEnabled function to enable or disable this or the checkbox in the preferences dialog.

Please try the feature and please give us feedback. Anything it doesn't find?

3 Likes

As I already wrote in the German FM Forum: this feature is simply fantastic!

1 Like

Will clicking any of these take you to the script?

Can you search by RegEx?

How about exporting search results?

This is the first version. More is to come.

Multiple words work, but no regex and no export.

On macOS a click brings you to the line in the script. On Windows it can’t.

2 Likes

Verstanden.

It’s great that the currently (IMHO) overpriced third-party search tools will finally have some competition!

And…”Replace”

And…”Print”

Brilliant Christian, good replacement for 2empowerFM plugin and blazing fast.
Makes this years update very worthwhile. It would be helpful if Paste works in the searchbox.

1 Like

It’ll take a few versions to unseat 2empowerFM, but it’s a start in that direction. What I like about the 2EmPower plug in is that it runs standalone and is fully featured. I would reasonably expect Christian to have several versions to fully catch up to that tool.

Finally having some competition in these overpriced-but-basic search/other FMP tools (that cost more than I paid for FMP itself!) is refreshing and I am totally with Christian on this!

Well, the version 16 is set. I already collect what people wish for in future releases.

We’ll see what the feedback is and then add more over time.

1 Like

It’s all good. We’re all behind you!!! :grinning_face: