MATLAB Community

MATLAB, community & more

The new search and filter field 9

Posted by admin,

I’ve talked a lot about wanting to improve the platform fidelity of the MATLAB Desktop. Along those lines, I think it’s also important to improve the consistency of the MATLAB Desktop. In R2008b, we’ve introduced a new search and filter widget that will help do both of these things.

The search and filter field is used to help narrow the scope of items that your looking at. I refer to it as a search and filter field because sometimes it’s more natural to think of it as a filter (e.g. when your narrowing the set of functions visible in the Function Browser), while other times it’s more natural to think of it as a search (e.g. when your looking through the documentation in the Help Browser). Either way, this widget will help you find things.

This style of widget is available on both Mac and Windows, so we’ve taken great care in making sure that it matches what you’d expect on those platforms. Here’s what the MATLAB search and filter field looks like on Mac and Windows:

And here are all the places you’ll see the search and filter widget in R2008b:

Current Directory Browser

Function Browser

Help Browser

Configuration Editor

Using a platform specific widget like this consistently across the MATLAB Desktop makes it easier to use the product. You won’t have to learn a different idiom for each Desktop component, but can instead pull from the shared idiom of the application.


Comments are closed.

9 CommentsOldest to Newest

Han Geerligs replied on : 1 of 9
hello Ken, to improve the unification of the search widget you might consider to use the "magnifying glass" icon at the right in all widget instances. I am missing that icon in the search field in the Configuration Editor. Another suggestion is to use the lightgrey hint "type here to ..." in all widgets, so also for the Help Browser and Function Browser. kind regards, Han
Ken replied on : 2 of 9
Hi Han, I guess I should have taken the screen shots above such that all the search and filter fields were in the same state. Let me clarify: Where's the magnifying glass? On Windows, the magnifying glass only shows up when there is no text in the field, and is replaced by an "x" button when text has been entered. This is the standard Windows behavior for this widget. Where's the prompting text? The prompting text only shows up when the search and filter filed doesn't have focus, and is empty. This is the standard behavior on all platforms. Let me know if that helps to clear things up. -Ken
Han Geerligs replied on : 3 of 9
Hello Ken, thanks for the clarification. However I think that it is confusing to change the look of the search field depending upon the 'state' (focus). When looking at UI guidelines i.e. the Apple HIG I see that for a search field the magnifying glass is always visible. It also features a stop-button. I was wondering which path Matlab uses when searching for M-file configurations? Apparently it is not only the Matlab path. kind regards, Han
Ken replied on : 4 of 9
Hi Han, If your on the Mac, you too should always see a magnifying glass. You should also see the clear button (the "x") when there is text entered into the text field. What version of MATLAB are you running? The Configuration Editor shows you *all* of your configurations, even for files not on the path. So when you type text into the filter field, it's filtering on all of the configurations you've ever created. -Ken
Han Geerligs replied on : 5 of 9
Ken, I am running on Windows, but was only referring to the Mac HIG guidelines. I used this as an example of a proven guideline for search field interfaces. I suppose the configurations are retrieved from \Mathworks\MATLAB\\publish_configurations.m and \Mathworks\MATLAB\\run_configurations.m. Anyway, thanks again for the clarification. Han
Ken replied on : 6 of 9
Hi Han, We do follow Apple's Human Interface Guidelines on the Mac, and the Microsoft's guidelines on Windows. I think you'll find we adhere pretty closely to Microsoft's specification of a Search Box. You're right about the configuration storage location. Both of the files you mention (run_configurations.m and publish_configurations.m) are pure MATLAB files. -Ken
Lasse replied on : 8 of 9
Hi, Is it possible to exclude files from search? I would like to remove files starting with dot and maybe some others. Lasse
Ken replied on : 9 of 9
Hi Lasse, There isn't any way to exclude files from the filter just yet, though we are working on it. -Ken